While compiling gdb with a relatively recent svn trunk gcc, I saw:
gcc -g -O2 -I. -I../../archer/gdb -I../../archer/gdb/common
-I../../archer/gdb/config
-DLOCALEDIR="\"/home/tromey/gnu/archer/install/share/locale\"" -DHAVE_CONFIG_H
-I../../archer/gdb/../include/opcode -I../../archer/gdb/../opcodes/..
-I../../archer/gdb/../readline/.. -I../bfd -I../../archer/gdb/../bfd
-I../../archer/gdb/../include -I../libdecnumber
-I../../archer/gdb/../libdecnumber -I../../archer/gdb/gnulib -Ignulib
-DMI_OUT=1 -DTUI=1 -I/usr/include -I/usr/include -Wall
-Wdeclaration-after-statement -Wpointer-arith -Wformat-nonliteral
-Wno-pointer-sign -Wno-unused -Wunused-value -Wunused-function -Wno-switch
-Wno-char-subscripts -Werror -c -o xcoffread.o -MT xcoffread.o -MMD -MP -MF
.deps/xcoffread.Tpo ../../archer/gdb/xcoffread.c
../../archer/gdb/xcoffread.c: In function xcoff_psymtab_to_symtab_1:
../../archer/gdb/xcoffread.c:1325:9: error:
fcn_aux_saved$x_sym$x_misc$x_fsize may be used uninitialized in this function
[-Werror=uninitialized]
../../archer/gdb/xcoffread.c:955:25: note: fcn_aux_saved$x_sym$x_misc$x_fsize
was declared here
cc1: all warnings being treated as errors
Those "$"s are strange to see, because they don't appear in the source.
I think it would be friendlier to emit "."s instead.
I will attach the .i momentarily.
--
Summary: strange warning text from gcc
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: tromey at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45083