mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-20 07:18:59 +08:00
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
This commit is contained in:
parent
57fb7689e7
commit
863251c18d
@ -1,3 +1,8 @@
|
||||
Sat Mar 18 14:38:00 2000 Jason Eckhardt <jle@cygnus.com>
|
||||
|
||||
* bb-reorder.c (reorder_basic_blocks): Update PREV_INSN as well as
|
||||
NEXT_INSN. Update last insn in chain.
|
||||
|
||||
2000-03-17 Jason Merrill <jason@casey.cygnus.com>
|
||||
|
||||
* dwarf2out.c (dwarf2out_decl): Don't emit anything for types
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user