Commit efd0378b by Hans-Peter Nilsson Committed by Jeff Law

final.c (final_scan_insn): Delete notes between cc0 setter and user when restarting from setter.

        * final.c (final_scan_insn): Delete notes between cc0 setter and
        user when restarting from setter.

From-SVN: r34517
parent 97ce876c
Tue Jun 13 10:05:30 2000 Hans-Peter Nilsson <hp@axis.com>
* final.c (final_scan_insn): Delete notes between cc0 setter and
user when restarting from setter.
2000-06-13 J. David Anglin <dave@hiauly1.hia.nrc.ca>
* vax.h (INDEX_TERM_P): Define evaluation order of &&'s in || and
......
......@@ -2943,10 +2943,28 @@ final_scan_insn (insn, file, optimize, prescan, nopeepholes)
needs to be reinserted. */
if (template == 0)
{
rtx prev;
if (prev_nonnote_insn (insn) != last_ignored_compare)
abort ();
new_block = 0;
return prev_nonnote_insn (insn);
/* We have already processed the notes between the setter and
the user. Make sure we don't process them again, this is
particularly important if one of the notes is a block
scope note or an EH note. */
for (prev = insn;
prev != last_ignored_compare;
prev = PREV_INSN (prev))
{
if (GET_CODE (prev) == NOTE)
{
NOTE_LINE_NUMBER (prev) = NOTE_INSN_DELETED;
NOTE_SOURCE_FILE (prev) = 0;
}
}
return prev;
}
/* If the template is the string "#", it means that this insn must
......
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