Add REG_MAYBE_DEAD note to frame pointer initialisation instruction.
authorNick Clifton <nickc@cambridge.redhat.com>
Wed, 16 Jan 2002 16:37:20 +0000 (16:37 +0000)
committerNick Clifton <nickc@gcc.gnu.org>
Wed, 16 Jan 2002 16:37:20 +0000 (16:37 +0000)
From-SVN: r48912

gcc/ChangeLog
gcc/config/arm/arm.c

index 7e7ae9f350483406048f37c29876c1f53eb5f47c..ab046ed9f75f290bb5887c6a64c73ebccb9e0e0e 100644 (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:
index 00b1b1958fb7cd455cb053da14327972de7e45ec..8ef7355ec8e2c48d54843e6291ce9fb0f6fd91fb 100644 (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));
        }
     }