re PR bootstrap/48403 (bootstrap comparison failure)
authorBernd Schmidt <bernds@codesourcery.com>
Mon, 4 Apr 2011 16:53:51 +0000 (16:53 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Mon, 4 Apr 2011 16:53:51 +0000 (09:53 -0700)
commit9b69cf836aa52f5769685077d258cd95fb9999ee
treeff67bf01de5159e212ece6ece7e302bfc2b86f01
parentd355ede7fdd18fc5783df1b90204080aef4b3dc8
re PR bootstrap/48403 (bootstrap comparison failure)

Fix PR bootstrap/48403.

2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>

PR bootstrap/48403
* haifa-sched.c (nonscheduled_insns_begin): New static variable.
(rank_for_schedule): Use scheduled_insns vector instead of
last_scheduled_insn.
(ok_for_early_queue_removal): Likewise.
(queue_to_ready): Search forward in nonscheduled_insns_begin if
we have a dbg_cnt.
(choose_ready): Likewise.
(commit_schedule): Use VEC_iterate.
(schedule_block): Initialize nonscheduled_insns_begin.  If we have
a dbg_cnt, use it and ensure the first insn is in the ready list.
(haifa_sched_init): Allocate scheduled_insns.
(sched_extend_ready_list): Don't allocate it; reserve space.
(haifa_sched_finish): Free it.

From-SVN: r171942
gcc/ChangeLog
gcc/haifa-sched.c