From 214a23ad5ed55d0d9ffa762cd69308c6486aea51 Mon Sep 17 00:00:00 2001 From: CentOS Buildsys Date: Jan 25 2014 03:15:44 +0000 Subject: import binutils-2.23.52.0.1-16.el7.src.rpm --- diff --git a/SOURCES/binutils-rh1048848.patch b/SOURCES/binutils-rh1048848.patch new file mode 100644 index 0000000..590d78e --- /dev/null +++ b/SOURCES/binutils-rh1048848.patch @@ -0,0 +1,35 @@ +diff -Nrup a/binutils/strings.c b/binutils/strings.c +--- a/binutils/strings.c 2013-02-27 13:28:03.000000000 -0700 ++++ b/binutils/strings.c 2014-01-06 11:26:21.939427032 -0700 +@@ -456,7 +456,18 @@ get_char (FILE *stream, file_ptr *addres + { + int c, i; + long r = EOF; +- unsigned char buf[4]; ++ /* Aggressive optimizations might expose elements of BUF as individual ++ objects and then uninitialized analysis may be performed on those ++ elements. ++ ++ If that happens, the compiler can/will warn in the switch statement ++ below because it does not know the relationship between ENCODING_BYTES ++ and ENCODING which prevents uninitialized uses. ++ ++ Just initialize the object to zeros, which seems to be the best of ++ several bad solutions (#pragma GCC diagnostic, exposing the ++ relationship between ENCODING_BYTES and ENCODING here, etc). */ ++ unsigned char buf[4] = { 0 }; + + for (i = 0; i < encoding_bytes; i++) + { +diff -Nrup a/ld/ldfile.c b/ld/ldfile.c +--- a/ld/ldfile.c 2013-02-27 13:28:03.000000000 -0700 ++++ b/ld/ldfile.c 2014-01-06 12:53:39.559070145 -0700 +@@ -596,7 +596,7 @@ static void + ldfile_open_command_file_1 (const char *name, bfd_boolean default_only) + { + FILE *ldlex_input_stack; +- bfd_boolean sysrooted; ++ bfd_boolean sysrooted = FALSE; + + ldlex_input_stack = ldfile_find_command_file (name, default_only, &sysrooted); + diff --git a/SPECS/binutils.spec b/SPECS/binutils.spec index 01af0ee..21cd217 100644 --- a/SPECS/binutils.spec +++ b/SPECS/binutils.spec @@ -4,6 +4,8 @@ # --without testsuite: Do not run the testsuite. Default is to run it. # --with testsuite: Run the testsuite. Default --with debug is not to run it. +%global _performance_build 1 + %if 0%{!?binutils_target:1} %define binutils_target %{_target_platform} %define isnative 1 @@ -17,7 +19,7 @@ Summary: A GNU collection of binary utilities Name: %{?cross}binutils%{?_with_debug:-debug} Version: 2.23.52.0.1 -Release: 12%{?dist} +Release: 16%{?dist} License: GPLv3+ Group: Development/Tools URL: http://sources.redhat.com/binutils @@ -62,6 +64,8 @@ Patch19: binutils-rh805115-2.patch Patch20: binutils-2.23.52.0.1-avx512-mpx-sha.patch # Add support for x86-64 -mcmodel=large -fpic TLS transitions. BZ #994244 Patch21: binutils-2.23.52.0.1-x86-64-mcmodel=large-tls.patch +# Avoid bogus -Wuninitialized problem when building with -O3 +Patch22: binutils-rh1048848.patch Provides: bundled(libiberty) @@ -181,6 +185,7 @@ using libelf instead of BFD. %patch19 -p1 -b .s390~ %patch20 -p0 -b .avx512-mpx-sha~ %patch21 -p0 -b .x86-64-mcmodel=large-tls~ +%patch22 -p1 -b .uninit~ # We cannot run autotools as there is an exact requirement of autoconf-2.59. @@ -480,6 +485,19 @@ exit 0 %endif # %{isnative} %changelog +* Fri Jan 24 2014 Daniel Mach - 2.23.52.0.1-16 +- Mass rebuild 2014-01-24 + +* Mon Jan 13 2014 Jeff Law - 2.23.52.0.1-15 +- Set _performance_build to get -O3 builds (#1051060). + +* Mon Jan 6 2014 Jeff Law - 2.23.52.0.1-14 +- Fix two may-be-uninitialized issues exposed by changes in + compiler flags used to build binutils (#1048848). + +* Fri Dec 27 2013 Daniel Mach - 2.23.52.0.1-13 +- Mass rebuild 2013-12-27 + * Thu Aug 29 2013 Jakub Jelinek - 2.23.52.0.1-12 - Add Intel AVX3, MPX and SHA support. - Add support for x86-64 -mcmodel=large -fpic TLS transitions. (#994244)