Building a tool chain for sh4 results in the following ICE: /home/alex/crosstool/crosstool-0.38/build/sh4-linux/gcc-4.1-20050917-glibc-2.3.5/build-gcc/./gcc/xgcc -v -save-temps -shared-libgcc -B/home/alex/crosstool/crosstool-0.38/build/sh4-linux/gcc-4.1-20050917-glibc-2.3.5/build-gcc/./gcc -nostdinc++ -L/home/alex/crosstool/crosstool-0.38/build/sh4-linux/gcc-4.1-20050917-glibc-2.3.5/build-gcc/sh4-linux/libstdc++-v3/src -L/home/alex/crosstool/crosstool-0.38/build/sh4-linux/gcc-4.1-20050917-glibc-2.3.5/build-gcc/sh4-linux/libstdc++-v3/src/.libs -B/opt/crosstool-sh4/gcc-4.1-20050917-glibc-2.3.5/sh4-linux/sh4-linux/bin/ -B/opt/crosstool-sh4/gcc-4.1-20050917-glibc-2.3.5/sh4-linux/sh4-linux/lib/ -isystem /opt/crosstool-sh4/gcc-4.1-20050917-glibc-2.3.5/sh4-linux/sh4-linux/include -isystem /opt/crosstool-sh4/gcc-4.1-20050917-glibc-2.3.5/sh4-linux/sh4-linux/sys-include -I/home/alex/crosstool/crosstool-0.38/build/sh4-linux/gcc-4.1-20050917-glibc-2.3.5/build-gcc/sh4-linux/libstdc++-v3/include/sh4-linux -I/home/alex/crosstool/crosstool-0.38/build/sh4-linux/gcc-4.1-20050917-glibc-2.3.5/build-gcc/sh4-linux/libstdc++-v3/include -I/home/alex/crosstool/crosstool-0.38/build/sh4-linux/gcc-4.1-20050917-glibc-2.3.5/gcc-4.1-20050917/libstdc++-v3/libsupc++ -g -O2 -D_GNU_SOURCE -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -c /home/alex/crosstool/crosstool-0.38/build/sh4-linux/gcc-4.1-20050917-glibc-2.3.5/gcc-4.1-20050917/libstdc++-v3/src/bitmap_allocator.cc -fPIC -DPIC -o .libs/bitmap_allocator.o Reading specs from /home/alex/crosstool/crosstool-0.38/build/sh4-linux/gcc-4.1-20050917-glibc-2.3.5/build-gcc/./gcc/specs Target: sh4-linux Configured with: /home/alex/crosstool/crosstool-0.38/build/sh4-linux/gcc-4.1-20050917-glibc-2.3.5/gcc-4.1-20050917/configure --target=sh4-linux --host=i686-host_pc-linux-gnu --prefix=/opt/crosstool-sh4/gcc-4.1-20050917-glibc-2.3.5/sh4-linux --with-multilib-list=m4,m4-nofpu --with-headers=/opt/crosstool-sh4/gcc-4.1-20050917-glibc-2.3.5/sh4-linux/sh4-linux/include --with-local-prefix=/opt/crosstool-sh4/gcc-4.1-20050917-glibc-2.3.5/sh4-linux/sh4-linux --disable-nls --enable-threads=posix --enable-symvers=gnu --enable-__cxa_atexit --enable-languages=c,c++ --enable-shared --enable-c99 --enable-long-long Thread model: posix gcc version 4.1.0 20050917 (experimental) /home/alex/crosstool/crosstool-0.38/build/sh4-linux/gcc-4.1-20050917-glibc-2.3.5/build-gcc/./gcc/cc1plus -E -quiet -nostdinc++ -v -I/home/alex/crosstool/crosstool-0.38/build/sh4-linux/gcc-4.1-20050917-glibc-2.3.5/build-gcc/sh4-linux/libstdc++-v3/include/sh4-linux -I/home/alex/crosstool/crosstool-0.38/build/sh4-linux/gcc-4.1-20050917-glibc-2.3.5/build-gcc/sh4-linux/libstdc++-v3/include -I/home/alex/crosstool/crosstool-0.38/build/sh4-linux/gcc-4.1-20050917-glibc-2.3.5/gcc-4.1-20050917/libstdc++-v3/libsupc++ -iprefix /home/alex/crosstool/crosstool-0.38/build/sh4-linux/gcc-4.1-20050917-glibc-2.3.5/build-gcc/gcc/../lib/gcc/sh4-linux/4.1.0/ -isystem /home/alex/crosstool/crosstool-0.38/build/sh4-linux/gcc-4.1-20050917-glibc-2.3.5/build-gcc/./gcc/include -D_GNU_SOURCE -D_GNU_SOURCE -DPIC -isystem /opt/crosstool-sh4/gcc-4.1-20050917-glibc-2.3.5/sh4-linux/sh4-linux/include -isystem /opt/crosstool-sh4/gcc-4.1-20050917-glibc-2.3.5/sh4-linux/sh4-linux/sys-include /home/alex/crosstool/crosstool-0.38/build/sh4-linux/gcc-4.1-20050917-glibc-2.3.5/gcc-4.1-20050917/libstdc++-v3/src/bitmap_allocator.cc -Wall -Wextra -Wwrite-strings -Wcast-qual -fno-implicit-templates -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -fPIC -fworking-directory -O2 -fpch-preprocess -o bitmap_allocator.ii ignoring nonexistent directory "/home/alex/crosstool/crosstool-0.38/build/sh4-linux/gcc-4.1-20050917-glibc-2.3.5/build-gcc/gcc/../lib/gcc/sh4-linux/4.1.0/include" ignoring nonexistent directory "/home/alex/crosstool/crosstool-0.38/build/sh4-linux/gcc-4.1-20050917-glibc-2.3.5/build-gcc/gcc/../lib/gcc/sh4-linux/4.1.0/../../../../sh4-linux/sys-include" ignoring nonexistent directory "/home/alex/crosstool/crosstool-0.38/build/sh4-linux/gcc-4.1-20050917-glibc-2.3.5/build-gcc/gcc/../lib/gcc/sh4-linux/4.1.0/../../../../sh4-linux/include" ignoring nonexistent directory "/opt/crosstool-sh4/gcc-4.1-20050917-glibc-2.3.5/sh4-linux/lib/gcc/sh4-linux/4.1.0/include" ignoring duplicate directory "/opt/crosstool-sh4/gcc-4.1-20050917-glibc-2.3.5/sh4-linux/lib/../sh4-linux/sys-include" ignoring duplicate directory "/opt/crosstool-sh4/gcc-4.1-20050917-glibc-2.3.5/sh4-linux/lib/../sh4-linux/include" #include "..." search starts here: #include <...> search starts here: /home/alex/crosstool/crosstool-0.38/build/sh4-linux/gcc-4.1-20050917-glibc-2.3.5/build-gcc/sh4-linux/libstdc++-v3/include/sh4-linux /home/alex/crosstool/crosstool-0.38/build/sh4-linux/gcc-4.1-20050917-glibc-2.3.5/build-gcc/sh4-linux/libstdc++-v3/include /home/alex/crosstool/crosstool-0.38/build/sh4-linux/gcc-4.1-20050917-glibc-2.3.5/gcc-4.1-20050917/libstdc++-v3/libsupc++ /home/alex/crosstool/crosstool-0.38/build/sh4-linux/gcc-4.1-20050917-glibc-2.3.5/build-gcc/./gcc/include /opt/crosstool-sh4/gcc-4.1-20050917-glibc-2.3.5/sh4-linux/sh4-linux/include /opt/crosstool-sh4/gcc-4.1-20050917-glibc-2.3.5/sh4-linux/sh4-linux/sys-include End of search list. /home/alex/crosstool/crosstool-0.38/build/sh4-linux/gcc-4.1-20050917-glibc-2.3.5/build-gcc/./gcc/cc1plus -fpreprocessed bitmap_allocator.ii -quiet -dumpbase bitmap_allocator.cc -auxbase-strip .libs/bitmap_allocator.o -g -O2 -Wall -Wextra -Wwrite-strings -Wcast-qual -version -fno-implicit-templates -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -fPIC -o bitmap_allocator.s GNU C++ version 4.1.0 20050917 (experimental) (sh4-linux) compiled by GNU C version 3.4.4 20050721 (Red Hat 3.4.4-2). GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 Compiler executable checksum: 30cfe2edac73fb5a52478b9d04f5bad8 /home/alex/crosstool/crosstool-0.38/build/sh4-linux/gcc-4.1-20050917-glibc-2.3.5/build-gcc/sh4-linux/libstdc++-v3/include/ext/bitmap_allocator.h: In member function '_Tp* __gnu_cxx::bitmap_allocator<_Tp>::_M_allocate_single_object() [with _Tp = char]': /home/alex/crosstool/crosstool-0.38/build/sh4-linux/gcc-4.1-20050917-glibc-2.3.5/build-gcc/sh4-linux/libstdc++-v3/include/ext/bitmap_allocator.h:1085: error: unable to find a register to spill in class 'R0_REGS' /home/alex/crosstool/crosstool-0.38/build/sh4-linux/gcc-4.1-20050917-glibc-2.3.5/build-gcc/sh4-linux/libstdc++-v3/include/ext/bitmap_allocator.h:1085: error: this is the insn: (insn:HI 403 398 982 31 /home/alex/crosstool/crosstool-0.38/build/sh4-linux/gcc-4.1-20050917-glibc-2.3.5/build-gcc/sh4-linux/libstdc++-v3/include/ext/bitmap_allocator.h:959 (set (reg/f:SI 2 r2 [390]) (mem/u/c:SI (plus:SI (reg:SI 12 r12) (reg/f:SI 10 r10 [575])) [0 S4 A32])) 172 {movsi_ie} (nil) (expr_list:REG_EQUIV (symbol_ref/i:SI ("_ZN9__gnu_cxx16bitmap_allocatorIcE13_S_block_sizeE") <var_decl 0xb7d52480 _S_block_size>) (nil))) /home/alex/crosstool/crosstool-0.38/build/sh4-linux/gcc-4.1-20050917-glibc-2.3.5/build-gcc/sh4-linux/libstdc++-v3/include/ext/bitmap_allocator.h:1085: internal compiler error: in spill_failure, at reload1.c:1890 Please submit a full bug report,
-- Summary: [sh4] ICE building libstc++ bitmap_allocator.cc Product: gcc Version: 4.1.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: sieb at sscd dot de CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: i686-pc-linux GCC host triplet: i686-pc-linux GCC target triplet: sh4-unknown-linux http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24032