Commit 0c4992b0 by Jan Hubicka Committed by Jan Hubicka

* reload1.c (fixup_abnormal_edges): Allow NOTEs in the sequence.

From-SVN: r45358
parent 303e4ccf
Sun Sep 2 18:37:54 CEST 2001 Jan Hubicka <jh@suse.cz>
* reload1.c (fixup_abnormal_edges): Allow NOTEs in the sequence.
2001-09-01 Geoffrey Keating <geoffk@redhat.com>
* expr.c (push_block): Make sane use of STACK_GROWS_DOWNWARD.
......
......@@ -9497,7 +9497,7 @@ fixup_abnormal_edges ()
}
if (e && GET_CODE (bb->end) != CALL_INSN && !can_throw_internal (bb->end))
{
rtx insn = bb->end;
rtx insn = bb->end, stop = NEXT_INSN (bb->end);
rtx next;
for (e = bb->succ; e; e = e->succ_next)
if (e->flags & EDGE_FALLTHRU)
......@@ -9513,11 +9513,14 @@ fixup_abnormal_edges ()
bb->end = insn;
inserted = true;
insn = NEXT_INSN (insn);
while (insn && GET_CODE (insn) == INSN)
while (insn && insn != stop)
{
next = NEXT_INSN (insn);
insert_insn_on_edge (PATTERN (insn), e);
flow_delete_insn (insn);
if (INSN_P (insn))
{
insert_insn_on_edge (PATTERN (insn), e);
flow_delete_insn (insn);
}
insn = next;
}
}
......
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