Description of problem: GCC crashes when compiling a C source from SpiderMonkey CVS HEAD, which is a JS engine for Mozilla browsers. Version-Release number of selected component (if applicable): gcc (GCC) 4.1.0 20060304 (Red Hat 4.1.0-3) How reproducible: Run the attched preprocessed source against /usr/libexec/gcc/i386-redhat-linux/4.1.0/cc1: /usr/libexec/gcc/i386-redhat-linux/4.1.0/cc1 -quiet -ILinux_All_DBG.OBJ -DGCC_OPT_BUG -DXP_UNIX -DSVR4 -DSYSV -D_BSD_SOURCE -DPOSIX_SOURCE -DHAVE_LOCALTIME_R -DX86_LINUX -DDEBUG -DDEBUG_igor -DEDITLINE -DJS_VERSION=150 jscpucfg.i -quiet -dumpbase jscpucfg.c -mtune=generic -auxbase-strip jscpucfg.i -g -Wall -Wno-format -o - -frandom-seed=0 Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
Created attachment 128701 [details] Preprocessed source that craches /usr/libexec/gcc/i386-redhat-linux/4.1.0/cc1
Here is a minimal test case to trigger the bug: int main() { if (sizeof(long) == 8) { volatile static union { long i; char c[8]; } u; u.i = 0; return (u.c[0] == 0x01 && u.c[1] == 0x02); } return 0; } Save it as test.c or test.i and try on FC5 for x86: gcc -c -g test.c gcc -c -g test.i /usr/libexec/gcc/i386-redhat-linux/4.1.0/cc1 test.i -g In all cases the result is: test.i:15: internal compiler error: in dwarf2out_finish, at dwarf2out.c:14116 If I remove -g, then there is no error (kind of obvious given the source bug)
*** This bug has been marked as a duplicate of 187339 ***