[patch gas]: Recent change to config/tc-i386.c caused build-failure with older gcc version

Kai Tietz ktietz70@googlemail.com
Mon Apr 11 18:35:00 GMT 2011


Hi,

Our buildbot has shown that in tc-i386.c:6589: error: `adjust` may be
used uninitialized. warning, which stopped build.

ChangeLog

2011-04-11  Kai Tietz

        * config/tc-i386.c (x86_cons): Initialize adjust with zero.

Ok for apply?

Regards,
Kai

Index: tc-i386.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-i386.c,v
retrieving revision 1.470
diff -u -3 -r1.470 tc-i386.c
--- tc-i386.c   11 Apr 2011 08:27:46 -0000      1.470
+++ tc-i386.c   11 Apr 2011 18:31:26 -0000
@@ -6572,7 +6572,7 @@
       /* Handle @GOTOFF and the like in an expression.  */
       char *save;
       char *gotfree_input_line;
-      int adjust;
+      int adjust = 0;

       save = input_line_pointer;
       gotfree_input_line = lex_got (&got_reloc, &adjust, NULL);



More information about the Binutils mailing list