building binutils 2.22.52 on cygwin with gcc 4.5.3 and -O6: gcc -DHAVE_CONFIG_H -I. -I../../../src/binutils-2.22.52/gas -I. -I../../../src/binutils-2.22.52/gas -I../bfd -I../../../src/binutils-2.22.52/gas/config -I../../../src/binutils-2.22.52/gas/../include -I../../../src/binutils-2.22.52/gas/.. -I../../../src/binutils-2.22.52/gas/../bfd -DLOCALEDIR="\"/cygdrive/p/Ablage/DG-GCC/install/share/locale\"" -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -O6 -MT tc-arm.o -MD -MP -MF .deps/tc-arm.Tpo -c -o tc-arm.o `test -f 'config/tc-arm.c' || echo '../../../src/binutils-2.22.52/gas/'`config/tc-arm.c cc1: warnings being treated as errors ../../../src/binutils-2.22.52/gas/config/tc-arm.c: In Funktion »parse_operands«: ../../../src/binutils-2.22.52/gas/config/tc-arm.c:6205:10: Fehler: »val« may be used uninitialized in this function
Created attachment 6492 [details] Initialise val
Hi Michael, I am unable to reproduce this problem locally, but the fix seems obvious. Please could you confirm that the uploaded patch allows you to build the toolchain and if it does then I will check it in. Cheers Nick
(In reply to comment #2) > Hi Michael, > > I am unable to reproduce this problem locally, but the fix seems obvious. > Please could you confirm that the uploaded patch allows you to build the > toolchain and if it does then I will check it in. > > Cheers > Nick Yes, this fixes it. (Same change I made to get around it.)
CVSROOT: /cvs/src Module name: src Changes by: nickc@sourceware.org 2012-06-29 15:15:48 Modified files: gas : ChangeLog gas/config : tc-arm.c Log message: PR gas/14263 * config/tc-arm.c (parse_operands): Initialise val. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/src/gas/ChangeLog.diff?cvsroot=src&r1=1.4759&r2=1.4760 http://sourceware.org/cgi-bin/cvsweb.cgi/src/gas/config/tc-arm.c.diff?cvsroot=src&r1=1.521&r2=1.522
Patch applied.