PR middle end/18718

PR middle end/18718
	* sched-rgn.c (schedule_region): Don't assume REG_SAVE_NOTEs are
	in pairs.
	* sched-ebb.c (schedule_ebb): Likewise.

From-SVN: r91702
This commit is contained in:
Alan Modra 2004-12-03 23:02:33 +00:00 committed by Alan Modra
parent e69d6ca7a4
commit 668707f70d
3 changed files with 9 additions and 10 deletions

View File

@ -1,3 +1,10 @@
2004-12-04 Alan Modra <amodra@bigpond.net.au>
PR middle end/18718
* sched-rgn.c (schedule_region): Don't assume REG_SAVE_NOTEs are
in pairs.
* sched-ebb.c (schedule_ebb): Likewise.
2004-12-03 Andreas Schwab <schwab@suse.de>
* Makefile.in (HOSTHOOKS_DEF_H): Define.

View File

@ -525,11 +525,7 @@ schedule_ebb (rtx head, rtx tail)
for (note = REG_NOTES (head); note; note = XEXP (note, 1))
if (REG_NOTE_KIND (note) == REG_SAVE_NOTE)
{
remove_note (head, note);
note = XEXP (note, 1);
remove_note (head, note);
}
remove_note (head, note);
}
/* Remove remaining note insns from the block, save them in

View File

@ -2324,11 +2324,7 @@ schedule_region (int rgn)
for (note = REG_NOTES (head); note; note = XEXP (note, 1))
if (REG_NOTE_KIND (note) == REG_SAVE_NOTE)
{
remove_note (head, note);
note = XEXP (note, 1);
remove_note (head, note);
}
remove_note (head, note);
}
/* Remove remaining note insns from the block, save them in