]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
local-alloc.c (update_equiv_regs): Check the correct insn for pre-existing REG_EQUIV...
authorJeffrey A Law <law@cygnus.com>
Thu, 21 Oct 1999 04:59:40 +0000 (04:59 +0000)
committerJeff Law <law@gcc.gnu.org>
Thu, 21 Oct 1999 04:59:40 +0000 (22:59 -0600)
        * local-alloc.c (update_equiv_regs): Check the correct insn
        for pre-existing REG_EQUIV notes.
Fix the sparc tetex bug.

From-SVN: r30110

gcc/ChangeLog
gcc/local-alloc.c

index 587dbbca168a61d4d6328d8d5613c706babe80d4..3084634761b1c09afb32120bf341bc41c10b2fbc 100644 (file)
@@ -1,3 +1,8 @@
+Wed Oct 20 22:57:58 1999  Jeffrey A Law  (law@cygnus.com)
+
+       * local-alloc.c (update_equiv_regs): Check the correct insn
+       for pre-existing REG_EQUIV notes.
+
 Tue Oct 19 02:03:00 1999  Jeffrey A Law  (law@cygnus.com)
 
        Revert this change.  Gavin's patch to operand_equal_p is a better fix.
index d1df595c4c1110d5acf444ca1448dc38a159a951..2fc3aec497700e4f62654797bbba58f5b76e91d2 100644 (file)
@@ -759,7 +759,8 @@ update_equiv_regs ()
          && REG_N_SETS (regno) == 1
          && reg_equiv_init_insns[regno] != 0
          && reg_equiv_init_insns[regno] != const0_rtx
-         && ! find_reg_note (insn, REG_EQUIV, NULL_RTX)
+         && ! find_reg_note (XEXP (reg_equiv_init_insns[regno], 0),
+                             REG_EQUIV, NULL_RTX)
          && ! contains_replace_regs (XEXP (dest, 0), reg_equiv_replace))
        {
          rtx init_insn = XEXP (reg_equiv_init_insns[regno], 0);