This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB 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]

[Bug build/9523] build error in infcall.c on gcc 3.2.3, due to compiler warning with -Werror


------- Additional Comments From steffen dot dettmer at gmail dot com  2010-06-23 17:18 -------
> Actually, GDB releases used to ship with --disable-werror by default, which I
> think is a good idea. GDB 6.8 uses -Werror by default, but I think that was an
> oversight.

Same for GDB 7.1, it uses -Werror by default:

$ ../configure --target=arm-elf

$ make
 
make[4]: Entering directory `/usr/local/build/gdb-7.1/build/bfd'
/bin/sh ./libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../bfd
-I. -I../../bfd -I../../bfd/../include   -DBINDIR='"/usr/local/bin"'  -W -Wall
-Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -g -O2 -MT
elf32-arm.lo -MD -MP -MF .deps/elf32-arm.Tpo -c -o elf32-arm.lo
../../bfd/elf32-arm.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../bfd -I. -I../../bfd
-I../../bfd/../include -DBINDIR=\"/usr/local/bin\" -W -Wall -Wstrict-prototypes
-Wmissing-prototypes -Wshadow -Werror -g -O2 -MT elf32-arm.lo -MD -MP -MF
.deps/elf32-arm.Tpo -c ../../bfd/elf32-arm.c -o elf32-arm.o
cc1: warnings being treated as errors
../../bfd/elf32-arm.c: In function `cortex_a8_erratum_scan':
../../bfd/elf32-arm.c:4043: warning: `offset' might be used uninitialized in
this function
make[4]: *** [elf32-arm.lo] Error 1
make[4]: Leaving directory `/usr/local/build/gdb-7.1/build/bfd'

$ gcc --version
gcc (GCC) 3.2

(yes I know it is old)


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=9523

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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