From: Jason Eckhardt Date: Sat, 18 Mar 2000 20:40:38 +0000 (+0000) Subject: bb-reorder.c (reorder_basic_blocks): Update PREV_INSN as well as NEXT_INSN. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=863251c18deeee5fc582117e78574d199bf76c6c;p=gcc.git bb-reorder.c (reorder_basic_blocks): Update PREV_INSN as well as NEXT_INSN. * bb-reorder.c (reorder_basic_blocks): Update PREV_INSN as well as NEXT_INSN. Update last insn in chain. From-SVN: r32623 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fe618c63f60..50cc97f8376 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Sat Mar 18 14:38:00 2000 Jason Eckhardt + + * bb-reorder.c (reorder_basic_blocks): Update PREV_INSN as well as + NEXT_INSN. Update last insn in chain. + 2000-03-17 Jason Merrill * dwarf2out.c (dwarf2out_decl): Don't emit anything for types diff --git a/gcc/bb-reorder.c b/gcc/bb-reorder.c index 0adf68324d1..f63483d01ce 100644 --- a/gcc/bb-reorder.c +++ b/gcc/bb-reorder.c @@ -765,7 +765,17 @@ reorder_basic_blocks () rtx xafter = skip_insns_between_block (BASIC_BLOCK (n_basic_blocks - 1), REORDER_SKIP_AFTER); if (xafter) - NEXT_INSN (xafter) = last_insn; + { + NEXT_INSN (xafter) = last_insn; + if (last_insn) + { + rtx x = last_insn; + PREV_INSN (last_insn) = xafter; + while (NEXT_INSN (x)) + x = NEXT_INSN (x); + set_last_insn (x); + } + } else abort(); }