https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66358
--- Comment #5 from Kazumoto Kojima <kkojima at gcc dot gnu.org> --- Created attachment 35673 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35673&action=edit original test case My sh-elf compiler COLLECT_GCC=../xsh-elf-combined/build/gcc/xgcc Target: sh-unknown-elf Configured with: /exp/ldroot/dodes/xsh-elf-combined/combined/configure --target=sh-unknown-elf --disable-libssp --disable-libgomp --disable-libstdcxx-pch --with-gnu-as --with-gnu-ld --enable-languages=c,c++ --disable-shared --with-newlib --disable-nls --prefix=/exp/ldroot/dodes/xsh-elf-combined/install --with-headers=yes --disable-gdbtk --with-mpfr=/opt2/i686-pc-linux-gnu --with-gmp=/opt2/i686-pc-linux-gnu --without-libgloss Thread model: single gcc version 6.0.0 20150531 (experimental) (GCC) can reproduce it with -O2 -fpic -m4 -ml, though the bug looks a bit fragile like as other RA related bugs. I've attached unreduced test case. sh-elf compiler ICEs for this test case even with -O2 only here.