diff options
author | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-05-19 23:54:07 +0000 |
---|---|---|
committer | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-05-19 23:54:07 +0000 |
commit | 4fd56d8b8fb4d39073d436f7613331d04a6dae06 (patch) | |
tree | 75798dcbe3eaabce32356980ad6508f338871524 /gcc/jump.c | |
parent | c313731b2fbaa7e3b51b62ee0af754234940e29d (diff) | |
download | gcc-4fd56d8b8fb4d39073d436f7613331d04a6dae06.tar.gz |
* jump.c (mark_jump_label): Tidy previous change.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@42327 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/jump.c')
-rw-r--r-- | gcc/jump.c | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/gcc/jump.c b/gcc/jump.c index d171cbae39d..8f9c6b45a36 100644 --- a/gcc/jump.c +++ b/gcc/jump.c @@ -2556,20 +2556,12 @@ mark_jump_label (x, insn, cross_jump, in_mem) /* We may also have a REG_EQUAL note to indicate that a register is being set to the address of the - label. We cannot use find_reg_note as above - because the REG_EQUAL note will use a LABEL_REF, - not the actual CODE_LABEL. */ - for (note = REG_NOTES (insn); note; note = XEXP (note, 1)) - if (REG_NOTE_KIND (note) == REG_EQUAL) - { - if (GET_CODE (XEXP (note, 0)) == LABEL_REF - && XEXP (XEXP (note, 0), 0) == olabel) - XEXP (XEXP (note, 0), 0) = label; - /* There is only one REG_EQUAL note per - instruction, so we are done at this - point. */ - break; - } + label. */ + note = find_reg_note (insn, REG_EQUAL, NULL_RTX); + if (note + && GET_CODE (XEXP (note, 0)) == LABEL_REF + && XEXP (XEXP (note, 0), 0) == olabel) + XEXP (XEXP (note, 0), 0) = label; } /* Otherwise, add a REG_LABEL note for LABEL unless there already |