http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58558
Bug ID: 58558 Summary: [Regression] ICE when building mednafen with -O2 on mips and mipsel on gcc 4.8.1 and 4.9.0 Product: gcc Version: 4.8.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: steve at sk2 dot org Created attachment 30922 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30922&action=edit Source code causing the ICE Hi, The attached pre-processed source fails to build on gcc 4.8.1 and gcc 4.9.0 on mips and mipsel, when -O2 is enabled. The command-line used to reproduce the ICE is simply g++ -O2 cc8t9QXW.i The versions on which the ICE occurs are Using built-in specs. COLLECT_GCC=g++ COLLECT_LTO_WRAPPER=/usr/lib/gcc/mipsel-linux-gnu/4.8/lto-wrapper Target: mipsel-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Debian 4.8.1-10' --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libitm --disable-libsanitizer --disable-libquadmath --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-mipsel/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-mipsel --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-mipsel --with-arch-directory=mips --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-multiarch --with-arch-32=mips2 --with-tune-32=mips32 --enable-targets=all --with-arch-64=mips3 --with-tune-64=mips64 --enable-checking=release --build=mipsel-linux-gnu --host=mipsel-linux-gnu --target=mipsel-linux-gnu Thread model: posix gcc version 4.8.1 (Debian 4.8.1-10) and Using built-in specs. COLLECT_GCC=/usr/lib/gcc-snapshot/bin/g++ COLLECT_LTO_WRAPPER=/usr/lib/gcc-snapshot/libexec/gcc/mipsel-linux-gnu/4.9.0/lto-wrapper Target: mipsel-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Debian 20130731-1' --with-bugurl=file:///usr/share/doc/gcc-snapshot/README.Bugs --enable-languages=c,ada,c++,java,go,fortran,objc,obj-c++ --prefix=/usr/lib/gcc-snapshot --enable-shared --enable-linker-build-id --disable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libitm --disable-libsanitizer --disable-libquadmath --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.9-snap-mipsel/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.9-snap-mipsel --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.9-snap-mipsel --with-arch-directory=mips --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-multiarch --with-arch-32=mips2 --with-tune-32=mips32 --enable-targets=all --with-arch-64=mips3 --with-tune-64=mips64 --disable-werror --enable-checking=yes --build=mipsel-linux-gnu --host=mipsel-linux-gnu --target=mipsel-linux-gnu Thread model: posix gcc version 4.9.0 20130731 (experimental) [trunk revision 201378] (Debian 20130731-1) The error message is In file included from src/chip/cx4/cx4.cpp:17:0: src/chip/cx4/oam.cpp: In member function 'void bSNES_v059::Cx4::op00_00()': src/chip/cx4/oam.cpp:77:1: internal compiler error: in do_SUBST, at combine.c:711 Please submit a full bug report, with preprocessed source if appropriate. See <file:///usr/share/doc/gcc-snapshot/README.Bugs> for instructions.