Commit 941ce52b by Andrew Pinski Committed by Andrew Pinski

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
parent b8849663
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> 2010-03-20 Richard Guenther <rguenther@suse.de>
PR rtl-optimization/43438 PR rtl-optimization/43438
......
...@@ -1957,10 +1957,6 @@ spu_expand_prologue (void) ...@@ -1957,10 +1957,6 @@ spu_expand_prologue (void)
rtx scratch_reg_0, scratch_reg_1; rtx scratch_reg_0, scratch_reg_1;
rtx insn, real; 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) if (flag_pic && optimize == 0)
crtl->uses_pic_offset_table = 1; crtl->uses_pic_offset_table = 1;
...@@ -2066,7 +2062,6 @@ spu_expand_prologue (void) ...@@ -2066,7 +2062,6 @@ spu_expand_prologue (void)
} }
} }
emit_note (NOTE_INSN_DELETED);
} }
void void
...@@ -2077,10 +2072,6 @@ spu_expand_epilogue (bool sibcall_p) ...@@ -2077,10 +2072,6 @@ spu_expand_epilogue (bool sibcall_p)
rtx sp_reg = gen_rtx_REG (Pmode, STACK_POINTER_REGNUM); rtx sp_reg = gen_rtx_REG (Pmode, STACK_POINTER_REGNUM);
rtx jump, scratch_reg_0; 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)) if (spu_naked_function_p (current_function_decl))
return; return;
...@@ -2125,7 +2116,6 @@ spu_expand_epilogue (bool sibcall_p) ...@@ -2125,7 +2116,6 @@ spu_expand_epilogue (bool sibcall_p)
emit_barrier_after (jump); emit_barrier_after (jump);
} }
emit_note (NOTE_INSN_DELETED);
} }
rtx rtx
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment