Commit 4928181c by Steven Bosscher Committed by Steven Bosscher

final.c (final_scan_insn): Fix broken commit from previous patch.

	* final.c (final_scan_insn): Fix broken commit from previous
	patch.

From-SVN: r84861
parent 3e3970a2
2004-07-17 Steven Bosscher <stevenb@suse.de>
* final.c (final_scan_insn): Fix broken commit from previous
patch.
2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk> 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
* c-typeck.c (parser_build_binary_op): Condition warnings for * c-typeck.c (parser_build_binary_op): Condition warnings for
......
...@@ -2008,17 +2008,19 @@ final_scan_insn (rtx insn, FILE *file, int optimize ATTRIBUTE_UNUSED, ...@@ -2008,17 +2008,19 @@ final_scan_insn (rtx insn, FILE *file, int optimize ATTRIBUTE_UNUSED,
break; break;
#ifdef HAVE_cc0 #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 /* If there is a REG_CC_SETTER note on this insn, it means that
of the insn that branched here. So recover the cc status the setting of the condition code was done in the delay slot
from the insn that set it. */ 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); rtx note = find_reg_note (insn, REG_CC_SETTER, NULL_RTX);
if (note) if (note)
{ {
NOTICE_UPDATE_CC (PATTERN (XEXP (note, 0)), XEXP (note, 0)); NOTICE_UPDATE_CC (PATTERN (XEXP (note, 0)), XEXP (note, 0));
cc_prev_status = cc_status; cc_prev_status = cc_status;
} }
}
#endif #endif
/* Detect insns that are really jump-tables /* Detect insns that are really jump-tables
...@@ -2401,7 +2403,7 @@ final_scan_insn (rtx insn, FILE *file, int optimize ATTRIBUTE_UNUSED, ...@@ -2401,7 +2403,7 @@ final_scan_insn (rtx insn, FILE *file, int optimize ATTRIBUTE_UNUSED,
emit them before the peephole. */ emit them before the peephole. */
if (next != 0 && next != NEXT_INSN (insn)) 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; for (note = NEXT_INSN (insn); note != next;
note = NEXT_INSN (note)) note = NEXT_INSN (note))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment