This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[patch gas]: Recent change to config/tc-i386.c caused build-failure with older gcc version
- From: Kai Tietz <ktietz70 at googlemail dot com>
- To: Binutils <binutils at sourceware dot org>
- Cc: Nick Clifton <nickc at redhat dot com>
- Date: Mon, 11 Apr 2011 20:35:34 +0200
- Subject: [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);