OSDN Git Service

(schedule_block): Reset n_ready if schedule_select
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 29 Mar 1993 22:34:25 +0000 (22:34 +0000)
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 29 Mar 1993 22:34:25 +0000 (22:34 +0000)
removes all insns from ready list.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@3918 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/sched.c

index dc944e4..cabe00b 100644 (file)
@@ -3441,6 +3441,9 @@ schedule_block (b, file)
            {
              if (file)
                fprintf (file, "\n");
+             /* We must set n_ready here, to ensure that sorting always
+                occurs when we come back to the SCHED_SORT line above.  */
+             n_ready = 0;
              continue;
            }
        }