Replace REG_MAYBE_DEAD notes with USEs.
authorNick Clifton <nickc@cambridge.redhat.com>
Tue, 22 Jan 2002 17:10:57 +0000 (17:10 +0000)
committerNick Clifton <nickc@gcc.gnu.org>
Tue, 22 Jan 2002 17:10:57 +0000 (17:10 +0000)
From-SVN: r49079

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

index 18cbc6437cceef796238db988a5913d31ba50ffa..a304260b04a38aaffb488f12007eea2fb115a14f 100644 (file)
@@ -1,3 +1,9 @@
+2002-01-22  Nick Clifton  <nickc@cambridge.redhat.com>
+
+       * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
+       note with a USE.
+       (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
+
 2002-01-22  Jason Merrill  <jason@redhat.com>
 
        * c-semantics.c (genrtl_compound_stmt): Only check nesting
index f69d75176c2e5a27d78c7d5aaccffc6ac34fbdd6..1490134efde6a5b37b35499422bf6a8f5dff6c60 100644 (file)
@@ -8343,11 +8343,9 @@ arm_expand_prologue ()
              insn = gen_rtx_MEM (SImode, insn);
            }
 
-         insn = gen_rtx_SET (SImode, ip_rtx, 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));
+         emit_insn (gen_rtx_SET (SImode, ip_rtx, insn));
+         /* Add a USE to stop propagate_one_insn() from barfing.  */
+         emit_insn (gen_rtx_USE (VOIDmode, ip_rtx));
        }
     }
 
@@ -10162,10 +10160,9 @@ thumb_expand_prologue ()
              reg = gen_rtx (REG, SImode, LAST_LO_REGNUM);
 
              /* Save it by copying it into a high, scratch register.  */
-             insn = emit_insn (gen_movsi (spare, reg));
-             /* Add a reg note to stop propogate_one_insn() from barfing.  */
-             REG_NOTES (insn) = gen_rtx_EXPR_LIST (REG_MAYBE_DEAD, spare,
-                                                   REG_NOTES (insn));
+             emit_insn (gen_movsi (spare, reg));
+             /* Add a USE to stop propagate_one_insn() from barfing.  */
+             emit_insn (gen_rtx_USE (VOIDmode, spare));
 
              /* Decrement the stack.  */
              emit_insn (gen_movsi (reg, GEN_INT (- amount)));