aboutsummaryrefslogtreecommitdiff
path: root/gcc/local-alloc.c
diff options
context:
space:
mode:
authorJeffrey A Law <law@cygnus.com>1999-10-21 05:01:02 +0000
committerJeff Law <law@gcc.gnu.org>1999-10-20 23:01:02 -0600
commitb768aa38c282f457363d03d438d5c2aed52be7a6 (patch)
tree22043036c54448ceabf9a2e5006265da8eb703f7 /gcc/local-alloc.c
parent16b702cd43c726a88897f6b153456e72fa990389 (diff)
downloadgcc-b768aa38c282f457363d03d438d5c2aed52be7a6.zip
gcc-b768aa38c282f457363d03d438d5c2aed52be7a6.tar.gz
gcc-b768aa38c282f457363d03d438d5c2aed52be7a6.tar.bz2
local-alloc.c (update_equiv_regs): Check the correct insn for pre-existing REG_EQUIV notes.
* local-alloc.c (update_equiv_regs): Check the correct insn for pre-existing REG_EQUIV notes. From-SVN: r30111
Diffstat (limited to 'gcc/local-alloc.c')
-rw-r--r--gcc/local-alloc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/local-alloc.c b/gcc/local-alloc.c
index 8191ce0..b45f339 100644
--- a/gcc/local-alloc.c
+++ b/gcc/local-alloc.c
@@ -761,7 +761,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);