sh-elf compiler segfaults with a null argument for emit_move_insn when compiling gcc.c-torture/compile/20000804-1.c with -O1.
The gdb backtrace is #0 emit_move_insn (x=0xb7c89e20, y=0x0) at ../../ORIG/trunk/gcc/expr.c:3275 #1 0x08262d94 in rest_of_handle_life () at ../../ORIG/trunk/gcc/flow.c:1560 #2 0x083d3eaa in execute_one_pass (pass=0x85f70e0) at ../../ORIG/trunk/gcc/passes.c:871 Thus the problem occurs in rest_of_handle_life 1560 emit_move_insn (param.retval, 1561 CONST0_RTX (GET_MODE (param.retval))); where param.retval is (reg:CDI 174) and CONST0_RTX (CDImode) is NULL on this target. -- Summary: [4.3 Regression] segfault with gcc.c- torture/compile/20000804-1.c on sh-elf Product: gcc Version: 4.3.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: target AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: kkojima at gcc dot gnu dot org GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: sh-elf http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30024