krfkeith / sx-gcc

Automatically exported from code.google.com/p/sx-gcc
0 stars 0 forks source link

uninitialized variable in gas/config/tc-sx.c (sx-binutils) #124

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I build sx-binutils on SLES10SP2(x86_64) with gcc 4.1.2.

The build process aborts at:

ontake:/nfs/nas/scr/ws/hwwnec4-gasnet-0/sx-binutils/gas # gcc
-DHAVE_CONFIG_H -I. -I. -I. -I../bfd -I./config -I./../include
-I./..-I./../bfd -DLOCALEDIR="\"/SX/share/locale\""   -W -Wall
-Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -c ./config/tc-sx.c
cc1: warnings being treated as errors
./config/tc-sx.c: In function ‘sx_parse_immediate’:
./config/tc-sx.c:1407: warning: ‘tmp_imm’ may be used uninitialized in this
function

Without  -Werror is compiles well. I do not see the problem on my PC. But I
can reproduce the error with a test program as well.

Original issue reported on code.google.com by danny.st...@gmail.com on 27 Apr 2009 at 8:15

GoogleCodeExporter commented 9 years ago
Hello Danny!

This issue should be fixed in the current revision (r202).
Could you give it a try?

Original comment by nou...@gmail.com on 28 Apr 2009 at 9:38

GoogleCodeExporter commented 9 years ago
Yes, it works now.

Original comment by danny.st...@gmail.com on 28 Apr 2009 at 9:46

GoogleCodeExporter commented 9 years ago

Original comment by nou...@gmail.com on 28 Apr 2009 at 10:05