This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug build/9523] build error in infcall.c on gcc 3.2.3, due to compiler warning with -Werror
- From: "steffen dot dettmer at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 23 Jun 2010 17:18:34 -0000
- Subject: [Bug build/9523] build error in infcall.c on gcc 3.2.3, due to compiler warning with -Werror
- References: <20080228015801.9523.robert.bu@gmail.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- 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.