archive test rebuild using binutils trunk

Alan Modra amodra@gmail.com
Wed Jan 10 23:15:00 GMT 2018


On Wed, Jan 10, 2018 at 09:07:35PM +0100, Matthias Klose wrote:
> A test rebuild of the Ubuntu archive using binutils trunk 20171219 was finished
> early this week.  I have put the build logs for packages failing to build with
> binutils trunk compared to 2.29 at
> 
>   http://people.canonical.com/~doko/tmp/binutils-2.30-regr/

The binutils-z80 build error looks like it might be due to some local
patch of yours.

readelf.c: In function ‘process_notes_at.part.62’:
readelf.c:17046:10: error: ‘sig_limit’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
   status = infinity_get_string (&rtypes, &ptr, sig_limit,
   ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     str_start, str_limit);
     ~~~~~~~~~~~~~~~~~~~~~
readelf.c:16983:18: note: ‘sig_limit’ was declared here
   unsigned char *sig_limit, *str_limit;
                  ^~~~~~~~~

The following fixes the binutils-arm-none-eabi build error.

commit b7cb0575754de2dc7a3098462eb6dcbfa5c00a96
Author: Alan Modra <amodra@gmail.com>
Date:   Thu Jan 11 09:34:58 2018 +1030

    gas tc-arm.c warning fix
    
    	* config/tc-arm.c (aeabi_set_public_attributes): Avoid false
    	positive "‘profile’ may be used uninitialized".

diff --git a/gas/ChangeLog b/gas/ChangeLog
index cacaeea..125d54a 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+2018-01-11  Alan Modra  <amodra@gmail.com>
+
+	* config/tc-arm.c (aeabi_set_public_attributes): Avoid false
+	positive "‘profile’ may be used uninitialized".
+
 2018-01-10  Jan Beulich  <jbeulich@suse.com>
 
 	* testsuite/gas/i386/avx512_4fmaps.s,
diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c
index 0b81c19..0e16688 100644
--- a/gas/config/tc-arm.c
+++ b/gas/config/tc-arm.c
@@ -27104,7 +27104,7 @@ found:
 static void
 aeabi_set_public_attributes (void)
 {
-  char profile;
+  char profile = '\0';
   int arch = -1;
   int virt_sec = 0;
   int fp16_optional = 0;

-- 
Alan Modra
Australia Development Lab, IBM



More information about the Binutils mailing list