http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49968
Summary: ICE in calls.c:3141 / assert after emit_stack_restore Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end AssignedTo: unassig...@gcc.gnu.org ReportedBy: uweig...@gcc.gnu.org CC: r...@gcc.gnu.org Target: spu-elf I'm seeing ICEs in calls.c:3141 on spu-elf after this patch went in: http://gcc.gnu.org/ml/gcc-patches/2011-08/msg00075.html One test case showing this problem is: gcc.c-torture/compile/20030224-1.c The problem here is that SPU's restore_stack_block generates insn sequences that do not terminate in a SET of stack_pointer_rtx, see this for further discussion: http://gcc.gnu.org/ml/gcc-patches/2011-08/msg00326.html