diff options
author | steven <steven@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-07-17 10:41:44 +0000 |
---|---|---|
committer | steven <steven@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-07-17 10:41:44 +0000 |
commit | 1337c7b6d210d29be76628454be8c234ab9acb27 (patch) | |
tree | 20a6beaa09ceb2b65735e8188907b8f60e6ebf84 /gcc/final.c | |
parent | 655109c8a29eb7ea5c4254f01a6367dc07d921b0 (diff) | |
download | gcc-1337c7b6d210d29be76628454be8c234ab9acb27.tar.gz |
* final.c (final_scan_insn): Fix broken commit from previous
patch.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84861 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/final.c')
-rw-r--r-- | gcc/final.c | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/gcc/final.c b/gcc/final.c index ea75e541348..f5da0a8023f 100644 --- a/gcc/final.c +++ b/gcc/final.c @@ -2008,17 +2008,19 @@ final_scan_insn (rtx insn, FILE *file, int optimize ATTRIBUTE_UNUSED, break; #ifdef HAVE_cc0 - /* If there is a REG_CC_SETTER note on this insn, it means that - the setting of the condition code was done in the delay slot - of the insn that branched here. So recover the cc status - from the insn that set it. */ + { + /* If there is a REG_CC_SETTER note on this insn, it means that + the setting of the condition code was done in the delay slot + of the insn that branched here. So recover the cc status + from the insn that set it. */ - note = find_reg_note (insn, REG_CC_SETTER, NULL_RTX); - if (note) - { - NOTICE_UPDATE_CC (PATTERN (XEXP (note, 0)), XEXP (note, 0)); - cc_prev_status = cc_status; - } + rtx note = find_reg_note (insn, REG_CC_SETTER, NULL_RTX); + if (note) + { + NOTICE_UPDATE_CC (PATTERN (XEXP (note, 0)), XEXP (note, 0)); + cc_prev_status = cc_status; + } + } #endif /* Detect insns that are really jump-tables @@ -2401,7 +2403,7 @@ final_scan_insn (rtx insn, FILE *file, int optimize ATTRIBUTE_UNUSED, emit them before the peephole. */ if (next != 0 && next != NEXT_INSN (insn)) { - rtx prev = PREV_INSN (insn); + rtx note, prev = PREV_INSN (insn); for (note = NEXT_INSN (insn); note != next; note = NEXT_INSN (note)) |