From: hubicka Date: Sun, 2 Sep 2001 16:38:46 +0000 (+0000) Subject: * reload1.c (fixup_abnormal_edges): Allow NOTEs in the sequence. X-Git-Tag: upstream/4.9.2~92263 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=740dc6f200c1d7150ed279a32dd8634c1a0f6823;p=platform%2Fupstream%2Flinaro-gcc.git * reload1.c (fixup_abnormal_edges): Allow NOTEs in the sequence. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45358 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 260f09f..6fb448b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +Sun Sep 2 18:37:54 CEST 2001 Jan Hubicka + + * reload1.c (fixup_abnormal_edges): Allow NOTEs in the sequence. + 2001-09-01 Geoffrey Keating * expr.c (push_block): Make sane use of STACK_GROWS_DOWNWARD. diff --git a/gcc/reload1.c b/gcc/reload1.c index bf66c00..c405981 100644 --- a/gcc/reload1.c +++ b/gcc/reload1.c @@ -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; } }