re PR target/43156 (SPU-elf ICEs on simple programs)

2010-03-20  Andrew Pinski  <pinskia@gmail.com>

        PR target/43156
        * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
        at the begining or end.
        (spu_expand_epilogue): Likewise.

From-SVN: r157596
This commit is contained in:
Andrew Pinski 2010-03-20 10:45:37 -07:00 committed by Andrew Pinski
parent b8849663cf
commit 941ce52b94
2 changed files with 7 additions and 10 deletions

View File

@ -1,3 +1,10 @@
2010-03-20 Andrew Pinski <pinskia@gmail.com>
PR target/43156
* config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
at the begining or end.
(spu_expand_epilogue): Likewise.
2010-03-20 Richard Guenther <rguenther@suse.de>
PR rtl-optimization/43438

View File

@ -1957,10 +1957,6 @@ spu_expand_prologue (void)
rtx scratch_reg_0, scratch_reg_1;
rtx insn, real;
/* A NOTE_INSN_DELETED is supposed to be at the start and end of
the "toplevel" insn chain. */
emit_note (NOTE_INSN_DELETED);
if (flag_pic && optimize == 0)
crtl->uses_pic_offset_table = 1;
@ -2066,7 +2062,6 @@ spu_expand_prologue (void)
}
}
emit_note (NOTE_INSN_DELETED);
}
void
@ -2077,10 +2072,6 @@ spu_expand_epilogue (bool sibcall_p)
rtx sp_reg = gen_rtx_REG (Pmode, STACK_POINTER_REGNUM);
rtx jump, scratch_reg_0;
/* A NOTE_INSN_DELETED is supposed to be at the start and end of
the "toplevel" insn chain. */
emit_note (NOTE_INSN_DELETED);
if (spu_naked_function_p (current_function_decl))
return;
@ -2125,7 +2116,6 @@ spu_expand_epilogue (bool sibcall_p)
emit_barrier_after (jump);
}
emit_note (NOTE_INSN_DELETED);
}
rtx