https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61844
Bug ID: 61844 Summary: ICE when building libgcc for sh64 cross-compiler Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: dhowells at redhat dot com When trying to build a cross-compiler for sh64 with libgcc, I get the following error and several others like it (make -j is in operation) during the compiler build: /data/fedora/cross-gcc/gcc-4.9.0-20140702/sh64-linux-gnu/./gcc/xgcc -B/data/fedora/cross-gcc/gcc-4.9.0-20140702/sh64-linux-gnu/./gcc/ -B/usr/sh64-linux/bin/ -B/usr/sh64-linux/lib/ -isystem /usr/sh64-linux/include -isystem /usr/sh64-linux/sys-include -g -O2 -mb -O2 -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fpic -DNO_FPSCR_VALUES -w -Wno-sync-nand -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -Dinhibit_libc -fpic -DNO_FPSCR_VALUES -w -Wno-sync-nand -I. -I. -I../../.././gcc -I../../../../gcc-4.9.0-20140702/libgcc -I../../../../gcc-4.9.0-20140702/libgcc/. -I../../../../gcc-4.9.0-20140702/libgcc/../gcc -I../../../../gcc-4.9.0-20140702/libgcc/../include -DHAVE_CC_TLS -DUSE_EMUTLS -o _addvsi3.o -MT _addvsi3.o -MD -MP -MF _addvsi3.dep -DL_addvsi3 -c ../../../../gcc-4.9.0-20140702/libgcc/libgcc2.c -fvisibility=hidden -DHIDE_EXPORTS ../../../../gcc-4.9.0-20140702/libgcc/libgcc2.c: In function ‘__addvsi3’: ../../../../gcc-4.9.0-20140702/libgcc/libgcc2.c:84:1: error: insn does not satisfy its constraints: } ^ (insn 27 51 52 3 (set (reg:SI 1 r1 [172]) (mem/c:SI (plus:SI (reg:SI 2 r2) (reg:SI 12 r12)) [0 S4 A32])) ../../../../gcc-4.9.0-20140702/libgcc/libgcc2.c:81 260 {*movsi_media} (nil)) ../../../../gcc-4.9.0-20140702/libgcc/libgcc2.c:84:1: internal compiler error: in reload_cse_simplify_operands, at postreload.c:411 0x73b24a _fatal_insn(char const*, rtx_def const*, char const*, int, char const*) ../../gcc-4.9.0-20140702/gcc/rtl-error.c:109 0x73b26f _fatal_insn_not_found(rtx_def const*, char const*, int, char const*) ../../gcc-4.9.0-20140702/gcc/rtl-error.c:120 0x6f2aa0 reload_cse_simplify_operands ../../gcc-4.9.0-20140702/gcc/postreload.c:411 0x6f48cc reload_cse_simplify ../../gcc-4.9.0-20140702/gcc/postreload.c:181 0x6f48cc reload_cse_regs_1 ../../gcc-4.9.0-20140702/gcc/postreload.c:220 0x6f4cbb reload_cse_regs ../../gcc-4.9.0-20140702/gcc/postreload.c:68 0x6f4cbb rest_of_handle_postreload ../../gcc-4.9.0-20140702/gcc/postreload.c:2332 0x6f4cbb execute ../../gcc-4.9.0-20140702/gcc/postreload.c:2368 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <http://bugzilla.redhat.com/bugzilla/> for instructions. Preprocessed source stored into /tmp/cce3xHzL.out file, please attach this to your bugreport. The same reduced test that causes bug 61737 to ICE causes this one to ICE. This can be found here: https://gcc.gnu.org/bugzilla/attachment.cgi?id=33082