This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Some GDB files won't compile with GCC 4.1, when -Werror is used
- From: Maxim Grigoriev <maxim at tensilica dot com>
- To: gdb at sourceware dot org
- Date: Mon, 24 Jul 2006 17:41:08 -0700
- Subject: Some GDB files won't compile with GCC 4.1, when -Werror is used
Hello everyone,
My codeline is synchronized with the main GDB CVS sources.
Am I the only individual who's unable to compile .../gdb/p-valprint.c
and .../gdb/cp-valprint.c with GCC 4.1 ?
Host is i686-pc-linux-gnu.
>>>>> uname -a
Linux .... 2.6.15-1.2054_FC5 #1 Tue Mar 14 15:48:33 EST 2006 i686 i686
i386 GNU/Linux
>>>>> gcc --version
gcc (GCC) 4.1.0 20060304 (Red Hat 4.1.0-3)
Copyright (C) 2006 Free Software Foundation, Inc.
...............
Then, an extraction from the logfile :
gcc -c -g -O2 -I. -I/home/maxim/G/BadgerPass/GDB/CVS/src/gdb
-I/home/maxim/G/BadgerPass/GDB/CVS/src/gdb/config
-DLOCALEDIR="\"/home/maxim/W/GDBsubmit/share/locale\"" -DHAVE_CONFIG_H
-I/home/maxim/G/BadgerPass/GDB/CVS/src/gdb/../include/opcode
-I/home/maxim/G/BadgerPass/GDB/CVS/src/gdb/../readline/.. -I../bfd
-I/home/maxim/G/BadgerPass/GDB/CVS/src/gdb/../bfd
-I/home/maxim/G/BadgerPass/GDB/CVS/src/gdb/../include -DMI_OUT=1
-DTUI=1 -Wimplicit -Wreturn-type -Wcomment -Wtrigraphs -Wformat
-Wparentheses -Wpointer-arith -Wformat-nonliteral -Wunused-label
-Wunused-function -Wno-pointer-sign -Wuninitialized -Werror
/home/maxim/G/BadgerPass/GDB/CVS/src/gdb/p-valprint.c
cc1: warnings being treated as errors
/home/maxim/G/BadgerPass/GDB/CVS/src/gdb/p-valprint.c: In function
'pascal_object_print_value_field':
/home/maxim/G/BadgerPass/GDB/CVS/src/gdb/p-valprint.c:756: warning:
'tmp_obstack.alloc_failed' may be used uninitialized in this function
/home/maxim/G/BadgerPass/GDB/CVS/src/gdb/p-valprint.c:756: warning:
'tmp_obstack.maybe_empty_object' may be used uninitialized in this function
/home/maxim/G/BadgerPass/GDB/CVS/src/gdb/p-valprint.c:756: warning:
'tmp_obstack.use_extra_arg' may be used uninitialized in this function
/home/maxim/G/BadgerPass/GDB/CVS/src/gdb/p-valprint.c:756: warning:
'tmp_obstack.extra_arg' may be used uninitialized in this function
/home/maxim/G/BadgerPass/GDB/CVS/src/gdb/p-valprint.c:756: warning:
'tmp_obstack.freefun' may be used uninitialized in this function
/home/maxim/G/BadgerPass/GDB/CVS/src/gdb/p-valprint.c:756: warning:
'tmp_obstack.chunkfun' may be used uninitialized in this function
/home/maxim/G/BadgerPass/GDB/CVS/src/gdb/p-valprint.c:756: warning:
'tmp_obstack.alignment_mask' may be used uninitialized in this function
/home/maxim/G/BadgerPass/GDB/CVS/src/gdb/p-valprint.c:756: warning:
'tmp_obstack.temp' may be used uninitialized in this function
/home/maxim/G/BadgerPass/GDB/CVS/src/gdb/p-valprint.c:756: warning:
'tmp_obstack.chunk_limit' may be used uninitialized in this function
/home/maxim/G/BadgerPass/GDB/CVS/src/gdb/p-valprint.c:756: warning:
'tmp_obstack.next_free' may be used uninitialized in this function
/home/maxim/G/BadgerPass/GDB/CVS/src/gdb/p-valprint.c:756: warning:
'tmp_obstack.object_base' may be used uninitialized in this function
/home/maxim/G/BadgerPass/GDB/CVS/src/gdb/p-valprint.c:756: warning:
'tmp_obstack.chunk' may be used uninitialized in this function
/home/maxim/G/BadgerPass/GDB/CVS/src/gdb/p-valprint.c:756: warning:
'tmp_obstack.chunk_size' may be used uninitialized in this function
make[2]: *** [p-valprint.o] Error 1
make[2]: Leaving directory `.../gdb'
make[1]: *** [all-gdb] Error 2
Thanks,
-- Maxim