cfgrtl.c (delete_insn): Decrease LABEL_NUSES for all REG_LABEL notes.

PR/10239
	* cfgrtl.c (delete_insn): Decrease LABEL_NUSES for all REG_LABEL notes.

From-SVN: r73145
This commit is contained in:
Josef Zlomek 2003-10-31 15:19:03 +01:00 committed by Josef Zlomek
parent 739e6d58e7
commit 9295a326c0
2 changed files with 14 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2003-10-31 Josef Zlomek <zlomekj@suse.cz>
PR/10239
* cfgrtl.c (delete_insn): Decrease LABEL_NUSES for all REG_LABEL notes.
2003-10-31 Josef Zlomek <zlomekj@suse.cz>
PR/11640

View File

@ -156,9 +156,15 @@ delete_insn (rtx insn)
LABEL_NUSES (JUMP_LABEL (insn))--;
/* Also if deleting an insn that references a label. */
else if ((note = find_reg_note (insn, REG_LABEL, NULL_RTX)) != NULL_RTX
&& GET_CODE (XEXP (note, 0)) == CODE_LABEL)
LABEL_NUSES (XEXP (note, 0))--;
else
{
while ((note = find_reg_note (insn, REG_LABEL, NULL_RTX)) != NULL_RTX
&& GET_CODE (XEXP (note, 0)) == CODE_LABEL)
{
LABEL_NUSES (XEXP (note, 0))--;
remove_note (insn, note);
}
}
if (GET_CODE (insn) == JUMP_INSN
&& (GET_CODE (PATTERN (insn)) == ADDR_VEC