From 9c62962685117a9a4102fcb93b94ed87269be05c Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Thu, 4 Feb 2016 11:41:01 +0000 Subject: [PATCH] Fix compile time warning building x86_64 gold. --- ...tils-2.26-dirsearch-destructor-unused.patch | 18 ++++++++++++++++++ binutils.spec | 7 +++++-- 2 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 binutils-2.26-dirsearch-destructor-unused.patch diff --git a/binutils-2.26-dirsearch-destructor-unused.patch b/binutils-2.26-dirsearch-destructor-unused.patch new file mode 100644 index 0000000..8400078 --- /dev/null +++ b/binutils-2.26-dirsearch-destructor-unused.patch @@ -0,0 +1,18 @@ +--- binutils-2.26.orig/gold/dirsearch.cc 2016-02-04 10:31:45.228796199 +0000 ++++ binutils-2.26/gold/dirsearch.cc 2016-02-04 11:33:15.875824355 +0000 +@@ -122,6 +122,7 @@ class Dir_caches + Cache_hash caches_; + }; + ++#if 0 + Dir_caches::~Dir_caches() + { + for (Cache_hash::iterator p = this->caches_.begin(); +@@ -129,6 +130,7 @@ Dir_caches::~Dir_caches() + ++p) + delete p->second; + } ++#endif + + void + Dir_caches::add(const char* dirname) diff --git a/binutils.spec b/binutils.spec index aacd58d..d56b181 100644 --- a/binutils.spec +++ b/binutils.spec @@ -20,7 +20,7 @@ Summary: A GNU collection of binary utilities Name: %{?cross}binutils%{?_with_debug:-debug} Version: 2.26 -Release: 7%{?dist} +Release: 8%{?dist} License: GPLv3+ Group: Development/Tools URL: http://sources.redhat.com/binutils @@ -57,6 +57,7 @@ Patch14: binutils-2.24-ldforcele.patch # Patch15: binutils-2.25.1-plugin-format-checking.patch Patch16: binutils-2.25.1-cleansweep.patch Patch17: binutils-2.26-formatting.patch +Patch18: binutils-2.26-dirsearch-destructor-unused.patch Provides: bundled(libiberty) @@ -182,6 +183,7 @@ using libelf instead of BFD. # %patch15 -p1 %patch16 -p0 %patch17 -p0 +%patch18 -p1 # We cannot run autotools as there is an exact requirement of autoconf-2.59. @@ -501,8 +503,9 @@ exit 0 %endif # %{isnative} %changelog -* Thu Feb 04 2016 Nick Clifton 2.26-7 +* Thu Feb 04 2016 Nick Clifton 2.26-8 - Fix indentation in bfd/coff-[i386|x86_64].c to avoid compile time warning. +- Mark GOLD's dir_caches destructor as unused. * Wed Feb 03 2016 Fedora Release Engineering - 2.26-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild