Revision 127303 works. Revision 127794 fails. Configure arguments: --target m32c-unknown-elf --with-newlib --enable-sim --disable-gdb --disable-nls --disable-multilib --enable-checking=yes,rtl --enable-languages=c,c++ --enable-cxx-flags=-O2
libtool: compile: /home/rask/build/gcc-m32c-unknown-elf/./gcc/xgcc -shared-libgcc -B/home/rask/build/gcc-m32c-unknown-elf/./gcc -nostdinc++ -L/home/rask/build/gcc-m32c-unknown-elf/m32c-unknown-elf/libstdc++-v3/src -L/home/rask/build/gcc-m32c-unknown-elf/m32c-unknown-elf/libstdc++-v3/src/.libs -nostdinc -B/home/rask/build/gcc-m32c-unknown-elf/m32c-unknown-elf/newlib/ -isystem /home/rask/build/gcc-m32c-unknown-elf/m32c-unknown-elf/newlib/targ-include -isystem /n/12/rask/src/all/newlib/libc/include -B/home/rask/build/gcc-m32c-unknown-elf/m32c-unknown-elf/libgloss/m32c -L/home/rask/build/gcc-m32c-unknown-elf/m32c-unknown-elf/libgloss/libnosys -L/n/12/rask/src/all/libgloss/m32c -B/usr/local/m32c-unknown-elf/bin/ -B/usr/local/m32c-unknown-elf/lib/ -isystem /usr/local/m32c-unknown-elf/include -isystem /usr/local/m32c-unknown-elf/sys-include -L/home/rask/build/gcc-m32c-unknown-elf/./ld -I/home/rask/build/gcc-m32c-unknown-elf/m32c-unknown-elf/libstdc++-v3/include/m32c-unknown-elf -I/home/rask/build/gcc-m32c-unknown-elf/m32c-unknown-elf/libstdc++-v3/include -I/n/12/rask/src/all/libstdc++-v3/libsupc++ -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -O2 -g -O2 -c /n/12/rask/src/all/libstdc++-v3/src/ostream-inst.cc -o ostream-inst.o /home/rask/build/gcc-m32c-unknown-elf/m32c-unknown-elf/libstdc++-v3/include/bits/ostream.tcc: In member function 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::_M_insert(_ValueT) [with _ValueT = const void*, _CharT = char, _Traits = std::char_traits<char>]': /home/rask/build/gcc-m32c-unknown-elf/m32c-unknown-elf/libstdc++-v3/include/bits/ostream.tcc:92: error: unable to find a register to spill in class 'A_REGS' /home/rask/build/gcc-m32c-unknown-elf/m32c-unknown-elf/libstdc++-v3/include/bits/ostream.tcc:92: error: this is the insn: (insn 302 304 303 22 (set (reg:HI 86) (reg:HI 4 a0)) 171 {movhi_op} (expr_list:REG_DEAD (reg:HI 4 a0) (nil))) /home/rask/build/gcc-m32c-unknown-elf/m32c-unknown-elf/libstdc++-v3/include/bits/ostream.tcc:92: internal compiler error: in spill_failure, at reload1.c:2001 -- Summary: [4.3 Regression] m32c: ostream.tcc:92: error: unable to find a register to spill in class 'A_REGS' Product: gcc Version: 4.3.0 Status: UNCONFIRMED Keywords: ice-on-valid-code, build Severity: normal Priority: P3 Component: target AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: rask at gcc dot gnu dot org GCC build triplet: x86_64-unknown-linux-gnu GCC host triplet: x86_64-unknown-linux-gnu GCC target triplet: m32c-unknown-elf http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33184