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:
parent
739e6d58e7
commit
9295a326c0
|
@ -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
|
||||
|
|
12
gcc/cfgrtl.c
12
gcc/cfgrtl.c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue