diff options
author | amodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-12-03 23:02:33 +0000 |
---|---|---|
committer | amodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-12-03 23:02:33 +0000 |
commit | 8f123a5e68d5c4e00cdd78846cf897b96ffba5fb (patch) | |
tree | 44fe3fd684e6cdd5af7852e78e2ce3d4f4d2441b /gcc/sched-ebb.c | |
parent | bf1fd8107c817dc61b0a7c174e693b2413ff643e (diff) | |
download | gcc-8f123a5e68d5c4e00cdd78846cf897b96ffba5fb.tar.gz |
PR middle end/18718
* sched-rgn.c (schedule_region): Don't assume REG_SAVE_NOTEs are
in pairs.
* sched-ebb.c (schedule_ebb): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91702 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/sched-ebb.c')
-rw-r--r-- | gcc/sched-ebb.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/gcc/sched-ebb.c b/gcc/sched-ebb.c index 4643478b3cb..560faf3620f 100644 --- a/gcc/sched-ebb.c +++ b/gcc/sched-ebb.c @@ -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 |