Add REG_MAYBE_DEAD note to frame pointer initialisation instruction.

From-SVN: r48912
This commit is contained in:
Nick Clifton 2002-01-16 16:37:20 +00:00 committed by Nick Clifton
parent e1886ae0ba
commit 2e99323f30
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
* config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
to frame pointer initialisation instruction.
(thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
initialisation instruction.
2002-01-16 Jakub Jelinek <jakub@redhat.com>
PR target/5357:

View File

@ -8344,7 +8344,10 @@ arm_expand_prologue ()
}
insn = gen_rtx_SET (SImode, ip_rtx, insn);
(void) emit_insn (insn);
insn = emit_insn (insn);
/* Add a reg note to stop propogate_one_insn() from barfing. */
REG_NOTES (insn) = gen_rtx_EXPR_LIST (REG_MAYBE_DEAD, ip_rtx,
REG_NOTES (insn));
}
}