gcc 4.0.1-4 ICE's when compiling freesci on m68k: m68k-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -Wall -g -O3 -c script.c ../../src/include/gfx_system.h:241: warning: 'gfx_rect_fullscreen' defined but not used ../../src/include/gfx_widgets.h:73: warning: 'gfxw_point_zero' defined but not used script.c: In function 'script_dissect': script.c:440: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. For Debian GNU/Linux specific bug reporting instructions, see <URL:file:///usr/share/doc/gcc-4.0/README.Bugs>.
See http://buildd.debian.org/fetch.php?&pkg=freesci&ver=0.3.4c-3&arch=m68k&stamp=1121689384&file=log&as=raw This occurs only when compiling with -O3. I'm attaching a preprocessed, cleaned-up c snippet (~100 lines) that triggers the bug: crest% gcc -O3 -c test.i test.i: In function 'script_dissect': test.i:90: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. For Debian GNU/Linux specific bug reporting instructions, see <URL:file:///usr/share/doc/gcc-4.0/README.Bugs>. crest% gcc -v -save-temps -O3 -c test.i Using built-in specs. Target: m68k-linux-gnu Configured with: ../src/configure -v --enable-languages=c,c++,java,objc,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --enable-nls --without-included-gettext --enable-threads=posix --program-suffix=-4.0 --enable-__cxa_atexit --enable-libstdcxx-allocator=mt --enable-clocale=gnu --enable-libstdcxx-debug --enable-java-gc=boehm --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-4.0-1.4.2.0/jre --disable-werror --enable-checking=release m68k-linux-gnu Thread model: posix gcc version 4.0.2 20050806 (prerelease) (Debian 4.0.1-4) /usr/lib/gcc/m68k-linux-gnu/4.0.2/cc1 -fpreprocessed test.i -quiet -dumpbase test.i -auxbase test -O3 -version -o test.s GNU C version 4.0.2 20050806 (prerelease) (Debian 4.0.1-4) (m68k-linux-gnu) compiled by GNU C version 4.0.2 20050806 (prerelease) (Debian 4.0.1-4). GGC heuristics: --param ggc-min-expand=38 --param ggc-min-heapsize=15939 test.i: In function 'script_dissect': test.i:90: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. For Debian GNU/Linux specific bug reporting instructions, see <URL:file:///usr/share/doc/gcc-4.0/README.Bugs>. -- Summary: ICE on m68k (-O3) Product: gcc Version: 4.0.1 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: bas at debian dot org CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: m68k-linux-gnu GCC host triplet: m68k-linux-gnu GCC target triplet: m68k-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23458