mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-07 14:57:21 +08:00
flow.c (delete_block): Call set_last_insn if we end up deleting the last insn in the rtl chain.
* flow.c (delete_block): Call set_last_insn if we end up deleting the last insn in the rtl chain. From-SVN: r24052
This commit is contained in:
parent
6f4d72224e
commit
e3f6ee2303
@ -59,6 +59,9 @@ Tue Dec 1 15:03:30 1998 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
|
||||
|
||||
Tue Dec 1 15:20:44 1998 Jeffrey A Law (law@cygnus.com)
|
||||
|
||||
* flow.c (delete_block): Call set_last_insn if we end up deleting the
|
||||
last insn in the rtl chain.
|
||||
|
||||
* reload1.c (reload): Do not set reload_completed or split insns
|
||||
here. Instead...
|
||||
* toplev.c (rest_of_compilation): Set reload_completed after
|
||||
|
@ -1018,12 +1018,16 @@ delete_block (i)
|
||||
NEXT_INSN (PREV_INSN (basic_block_head[i])) = insn;
|
||||
if (insn != 0)
|
||||
PREV_INSN (insn) = PREV_INSN (basic_block_head[i]);
|
||||
else
|
||||
set_last_insn (PREV_INSN (basic_block_head[i]));
|
||||
}
|
||||
else
|
||||
{
|
||||
NEXT_INSN (PREV_INSN (basic_block_head[i])) = kept_head;
|
||||
if (insn != 0)
|
||||
PREV_INSN (insn) = kept_tail;
|
||||
else
|
||||
set_last_insn (kept_tail);
|
||||
|
||||
PREV_INSN (kept_head) = PREV_INSN (basic_block_head[i]);
|
||||
NEXT_INSN (kept_tail) = insn;
|
||||
|
Loading…
Reference in New Issue
Block a user