http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28734
Rob <rob1weld at aol dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rob1weld at aol dot com --- Comment #10 from Rob <rob1weld at aol dot com> 2011-01-19 04:36:37 UTC --- (In reply to comment #3) > Can you attach the preprocessed testcase as this is most likely this is a bug > still? The source in the Testsuite Directory contains an error (misnamed file) which when corrected will allow gcc to compile correctly. It is the "File Not Found" error that causes the ICE and NOT an "error in the Testsuite source" itself. If you alter the Source to correct it then the ICE goes away. This message suggests that this Bug still occurs on the Trunk and purports a Fix: http://readlist.com/lists/gcc.gnu.org/gcc/8/41545.html I get this Bug on a preRelease SVN version: # /usr/local/gcc-4_5-branch_build/gcc/xgcc -v Using built-in specs. COLLECT_GCC=/usr/local/gcc-4_5-branch_build/gcc/xgcc Target: x86_64-unknown-linux-gnu Configured with: ../gcc-4_5-branch/configure --enable-multiarch --enable-nls --with-tls --enable-static --enable-shared --enable-plugin --enable-lto --enable-linker-build-id --with-system-zlib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-stage1-checking=release --enable-checking=release --enable-gather-detailed-mem-stats --enable-libssp --enable-libmudflap --enable-libgomp --enable-decimal-float --enable-languages=c,c++,ada Thread model: posix gcc version 4.5.3 20110117 (prerelease) [gcc-4_5-branch revision 168886] (GCC) # uname -a Linux debian 2.6.32-5-amd64 #1 SMP Wed Jan 12 05:14:59 UTC 2011 x86_64 GNU/Linux # cat /usr/local/gcc-4_5-branch/gcc/testsuite/gcc.dg/pch/common-1.c #include "common-1.h" int foo2 = 3; int zz = 2; # cat /usr/local/gcc-4_5-branch/gcc/testsuite/gcc.dg/pch/common-1.hs static int foo1 = 9; int foo2; extern int zz; If I edit a copy of common-1.c and include "common-1.hs" (instead of "common-1.h") then the ICE does not occur (so no preprocessed source included). Here is a small portion of gcc.log: PASS: gcc.dg/noncompile/voidparam-1.c -O2 -fwhopr (test for excess errors) testcase /usr/local/gcc-4_5-branch/gcc/testsuite/gcc.dg/noncompile/noncompile.exp completed in 54 seconds Running /usr/local/gcc-4_5-branch/gcc/testsuite/gcc.dg/pch/pch.exp ... Executing on host: /usr/local/gcc-4_5-branch_build/gcc/xgcc -B/usr/local/gcc-4_5-branch_build/gcc/ ./common-1.h -O0 -g -m32 -o common-1.h.gch (timeout = 300) spawn /usr/local/gcc-4_5-branch_build/gcc/xgcc -B/usr/local/gcc-4_5-branch_build/gcc/ ./common-1.h -O0 -g -m32 -o common-1.h.gch PASS: ./common-1.h -O0 -g (test for excess errors) Executing on host: /usr/local/gcc-4_5-branch_build/gcc/xgcc -B/usr/local/gcc-4_5-branch_build/gcc/ /usr/local/gcc-4_5-branch/gcc/testsuite/gcc.dg/pch/common-1.c -O0 -g -I. -S -m32 -o common-1.s (timeout = 300) spawn /usr/local/gcc-4_5-branch_build/gcc/xgcc -B/usr/local/gcc-4_5-branch_build/gcc/ /usr/local/gcc-4_5-branch/gcc/testsuite/gcc.dg/pch/common-1.c -O0 -g -I. -S -m32 -o common-1.s /usr/local/gcc-4_5-branch/gcc/testsuite/gcc.dg/pch/common-1.c:3:1: internal compiler error: in ggc_record_overhead, at ggc-common.c:939 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. compiler exited with status 1 output is: /usr/local/gcc-4_5-branch/gcc/testsuite/gcc.dg/pch/common-1.c:3:1: internal compiler error: in ggc_record_overhead, at ggc-common.c:939 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. FAIL: gcc.dg/pch/common-1.c -O0 -g -I. (internal compiler error) FAIL: gcc.dg/pch/common-1.c -O0 -g -I. (test for excess errors) Excess errors: /usr/local/gcc-4_5-branch/gcc/testsuite/gcc.dg/pch/common-1.c:3:1: internal compiler error: in ggc_record_overhead, at ggc-common.c:939 assembly file 'common-1.s' missing FAIL: gcc.dg/pch/common-1.c -O0 -g assembly comparison Executing on host: /usr/local/gcc-4_5-branch_build/gcc/xgcc -B/usr/local/gcc-4_5-branch_build/gcc/ ./common-1.h -O0 -m32 -o common-1.h.gch (timeout = 300) spawn /usr/local/gcc-4_5-branch_build/gcc/xgcc -B/usr/local/gcc-4_5-branch_build/gcc/ ./common-1.h -O0 -m32 -o common-1.h.gch PASS: ./common-1.h -O0 (test for excess errors) Executing on host: /usr/local/gcc-4_5-branch_build/gcc/xgcc -B/usr/local/gcc-4_5-branch_build/gcc/ /usr/local/gcc-4_5-branch/gcc/testsuite/gcc.dg/pch/common-1.c -O0 -I. -S -m32 -o common-1.s (timeout = 300) spawn /usr/local/gcc-4_5-branch_build/gcc/xgcc -B/usr/local/gcc-4_5-branch_build/gcc/ /usr/local/gcc-4_5-branch/gcc/testsuite/gcc.dg/pch/common-1.c -O0 -I. -S -m32 -o common-1.s /usr/local/gcc-4_5-branch/gcc/testsuite/gcc.dg/pch/common-1.c:3:1: internal compiler error: in ggc_record_overhead, at ggc-common.c:939 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. compiler exited with status 1 output is: /usr/local/gcc-4_5-branch/gcc/testsuite/gcc.dg/pch/common-1.c:3:1: internal compiler error: in ggc_record_overhead, at ggc-common.c:939 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. FAIL: gcc.dg/pch/common-1.c -O0 -I. (internal compiler error) FAIL: gcc.dg/pch/common-1.c -O0 -I. (test for excess errors) Excess errors: /usr/local/gcc-4_5-branch/gcc/testsuite/gcc.dg/pch/common-1.c:3:1: internal compiler error: in ggc_record_overhead, at ggc-common.c:939 assembly file 'common-1.s' missing FAIL: gcc.dg/pch/common-1.c -O0 assembly comparison Executing on host: /usr/local/gcc-4_5-branch_build/gcc/xgcc -B/usr/local/gcc-4_5-branch_build/gcc/ ./common-1.h -O1 -m32 -o common-1.h.gch (timeout = 300) spawn /usr/local/gcc-4_5-branch_build/gcc/xgcc -B/usr/local/gcc-4_5-branch_build/gcc/ ./common-1.h -O1 -m32 -o common-1.h.gch PASS: ./common-1.h -O1 (test for excess errors) ... ----- Perhaps more troubling is that if I run this by hand from the command line (instead of letting the Testsuite run it) then I get a "normal error" and no ICE. So we have: * Testsuite's gcc.log shows different output than using the command line. * In the common-1.c File the "#include" references a file we do not have _OR_ we create the File to be included with a name differing from what the Source expects. # /usr/local/gcc-4_5-branch_build/gcc/xgcc -B/usr/local/gcc-4_5-branch_build/gcc/ /usr/local/gcc-4_5-branch/gcc/testsuite/gcc.dg/pch/common-1.c -O0 -g -I. -S -m32 -o common-1.s /usr/local/gcc-4_5-branch/gcc/testsuite/gcc.dg/pch/common-1.c:1:22: fatal error: common-1.h: No such file or directory compilation terminated. Thanks, Rob