This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]