From 941ce52b945395aa8d97a1e06fe3b2b909860d20 Mon Sep 17 00:00:00 2001 From: Andrew Pinski Date: Sat, 20 Mar 2010 10:45:37 -0700 Subject: [PATCH] re PR target/43156 (SPU-elf ICEs on simple programs) 2010-03-20 Andrew Pinski 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 --- gcc/ChangeLog | 7 +++++++ gcc/config/spu/spu.c | 10 ---------- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d753fb3aa9c..d098df71dc3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2010-03-20 Andrew Pinski + + 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 PR rtl-optimization/43438 diff --git a/gcc/config/spu/spu.c b/gcc/config/spu/spu.c index 3e04c17d790..f2c1be69035 100644 --- a/gcc/config/spu/spu.c +++ b/gcc/config/spu/spu.c @@ -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