diff options
author | zlomek <zlomek@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-10-31 14:19:03 +0000 |
---|---|---|
committer | zlomek <zlomek@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-10-31 14:19:03 +0000 |
commit | 242dafeec979e46e84af2364efe4d7b3205e6ca7 (patch) | |
tree | 89c2e555f3bddd0c9807e4c473cb94319a3d5465 /gcc/cfgrtl.c | |
parent | 0f9d22d7757faaa16d877bc578028e0141516064 (diff) | |
download | gcc-242dafeec979e46e84af2364efe4d7b3205e6ca7.tar.gz |
PR/10239
* cfgrtl.c (delete_insn): Decrease LABEL_NUSES for all REG_LABEL notes.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73145 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cfgrtl.c')
-rw-r--r-- | gcc/cfgrtl.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/gcc/cfgrtl.c b/gcc/cfgrtl.c index 7354c73c7fb..5769ef366b5 100644 --- a/gcc/cfgrtl.c +++ b/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 |