http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56121
Bug #: 56121 Summary: [SH] ICE in libgcc/unwind-dw2.c Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target AssignedTo: unassig...@gcc.gnu.org ReportedBy: olege...@gcc.gnu.org Target: sh*-*-* When building an SH cross compiler the following error occurs: ../../../../gcc-trunk2/libgcc/unwind-dw2.c: In function 'execute_stack_op': ../../../../gcc-trunk2/libgcc/unwind-dw2.c:902:1: error: unable to generate reloads for: } ^ (insn 747 746 748 61 (set (reg:SI 147 t) (zero_extract:SI (reg:SI 621 [ MEM[(struct _Unwind_Context *)context_25(D) + 640B] ]) (const_int 1 [0x1]) (const_int 30 [0x1e]))) ../../../../gcc-trunk2/libgcc/unwind-dw2.c:211 496 {bld_reg} (expr_list:REG_DEAD (reg:SI 621 [ MEM[(struct _Unwind_Context *)context_25(D) + 640B] ]) (nil))) ../../../../gcc-trunk2/libgcc/unwind-dw2.c:902:1: internal compiler error: in find_reloads, at reload.c:3877 0x85338c7 _fatal_insn(char const*, rtx_def const*, char const*, int, char const*) ../../gcc-trunk2/gcc/rtl-error.c:109 0x851b374 find_reloads(rtx_def*, int, int, int, short*) ../../gcc-trunk2/gcc/reload.c:3877 0x8524668 calculate_needs_all_insns ../../gcc-trunk2/gcc/reload1.c:1520 0x8529038 reload(rtx_def*, int) ../../gcc-trunk2/gcc/reload1.c:941 0x8444925 do_reload ../../gcc-trunk2/gcc/ira.c:4635 0x8444925 rest_of_handle_reload ../../gcc-trunk2/gcc/ira.c:4736 Please submit a full bug report, It seems this happens when compiling libgcc for SH2A.