From: Nick Clifton Date: Wed, 16 Jan 2002 16:37:20 +0000 (+0000) Subject: Add REG_MAYBE_DEAD note to frame pointer initialisation instruction. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2e99323f30f30680a3b3a69f9c84d9ba136e0ac4;p=gcc.git Add REG_MAYBE_DEAD note to frame pointer initialisation instruction. From-SVN: r48912 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7e7ae9f3504..ab046ed9f75 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2002-01-16 Nick Clifton + + * 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 PR target/5357: diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index 00b1b1958fb..8ef7355ec8e 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -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)); } }