aboutsummaryrefslogtreecommitdiff
path: root/gcc/reload.c
diff options
context:
space:
mode:
authormshawcroft <mshawcroft@138bc75d-0d04-0410-961f-82ee72b054a4>2012-01-05 09:45:09 +0000
committermshawcroft <mshawcroft@138bc75d-0d04-0410-961f-82ee72b054a4>2012-01-05 09:45:09 +0000
commita7dcb2baea7c8a0cd91bbcd0d77adae4b3f724c3 (patch)
treee14a127fea714331dc76dac4690005e31f9e31f4 /gcc/reload.c
parent44e41ce06fd1b834f81f2db5ad467a2a758432c7 (diff)
* reload.c (find_reloads): Adjust LABEL_NUSES on REG_LABEL_OPERAND
insertion. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182903 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/reload.c')
-rw-r--r--gcc/reload.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/reload.c b/gcc/reload.c
index 896e8de9ff7..90085bd33da 100644
--- a/gcc/reload.c
+++ b/gcc/reload.c
@@ -4208,7 +4208,12 @@ find_reloads (rtx insn, int replace, int ind_levels, int live_known,
&& (!JUMP_P (insn)
|| !label_is_jump_target_p (XEXP (substitution, 0),
insn)))
- add_reg_note (insn, REG_LABEL_OPERAND, XEXP (substitution, 0));
+ {
+ add_reg_note (insn, REG_LABEL_OPERAND, XEXP (substitution, 0));
+ if (LABEL_P (XEXP (substitution, 0)))
+ ++LABEL_NUSES (XEXP (substitution, 0));
+ }
+
}
else
retval |= (substed_operand[i] != *recog_data.operand_loc[i]);