This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

sh-elf breakage in last 24 hours


It appears someone broke sh-elf in the past 24 hours or so.

It appears to crash during parsing when tagged_types_tu_compatible
receives an invalid pointer. Here's the backtrace:

(gdb) file cc1
Reading symbols from cc1...done.
(gdb) set args -O2 -m4 quadrics.i
(gdb) run
Starting program: /home/tm/gcc-build-sh-elf/gcc/cc1 -O2 -m4 quadrics.i
quadrics.i:477: warning: conflicting types for built-in function 'nan'
quadrics.i:553: warning: conflicting types for built-in function 'nanf'

Program received signal SIGSEGV, Segmentation fault.
0x0807a535 in tagged_types_tu_compatible_p (t1=0x40201144, t2=0x4016cec4,
flags=0) at ../../gcc/gcc/c-typeck.c:680
680	    t2 = DECL_ORIGINAL_TYPE (TYPE_NAME (t2));
(gdb) bt
#0  0x0807a535 in tagged_types_tu_compatible_p (t1=0x40201144,
t2=0x4016cec4, flags=0) at ../../gcc/gcc/c-typeck.c:680
#1  0x0807a25a in comptypes (type1=0x40201144, type2=0x4016cec4,
flags=0) at ../../gcc/gcc/c-typeck.c:575
#2  0x0807aff4 in type_lists_compatible_p (args1=0x40202f64,
args2=0x401760a0, flags=0) at ../../gcc/gcc/c-typeck.c:902
#3  0x0807ae4b in function_types_compatible_p (f1=0x402043cc,
f2=0x401a2360, flags=0) at ../../gcc/gcc/c-typeck.c:861
#4  0x08079f87 in comptypes (type1=0x402043cc, type2=0x401a2360,
flags=0) at ../../gcc/gcc/c-typeck.c:523
#5  0x08069544 in duplicate_decls (newdecl=0x40204438, olddecl=0x401a23cc,
different_binding_level=0, different_tu=0) at ../../gcc/gcc/c-decl.c:809
#6  0x0806c23d in pushdecl (x=0x40204438) at ../../gcc/gcc/c-decl.c:1721
#7  0x0806deba in start_decl (declarator=0x401fe1f8, declspecs=0x40202e38,
initialized=0, attributes=0x0) at ../../gcc/gcc/c-decl.c:2706
#8  0x0804c9d8 in yyparse () at c-parse.y:1332
#9  0x0804fc73 in c_parse_file () at c-parse.y:3033
#10 0x080a542c in c_common_parse_file (set_yydebug=0) at
../../gcc/gcc/c-opts.c:1227
#11 0x0826c70e in compile_file () at ../../gcc/gcc/toplev.c:1836
#12 0x082709df in do_compile () at ../../gcc/gcc/toplev.c:4691
#13 0x08270a66 in toplev_main (argc=4, argv=0xbffff934) at
../../gcc/gcc/toplev.c:4731
#14 0x4003ab5c in __libc_start_main (main=0x80bf530 <main>, argc=4,
ubp_av=0xbffff934, init=0x80493b4 <_init>, fini=0x831a9b0 <_fini>,
rtld_fini=0x4000d634 <_dl_fini>, stack_end=0xbffff92c)
    at ../sysdeps/generic/libc-start.c:129
(gdb) 

Toshi



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