diff mbox

Add missed adjustment to label_nuses in reload.

Message ID 4F0572AE.40801@arm.com
State New
Headers show

Commit Message

Marcus Shawcroft Jan. 5, 2012, 9:51 a.m. UTC
> Approved after you fix some minor fomatting nits. Your code has:

Thank you.

I committed the attached nit adjusted patch.

/Marcus
diff mbox

Patch

diff --git a/gcc/reload.c b/gcc/reload.c
index 53dcd2d..206fb36 100644
--- a/gcc/reload.c
+++ b/gcc/reload.c
@@ -4212,7 +4212,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]);