http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48403

--- Comment #26 from hjl at gcc dot gnu.org <hjl at gcc dot gnu.org> 2011-04-04 
16:53:57 UTC ---
Author: hjl
Date: Mon Apr  4 16:53:51 2011
New Revision: 171942

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=171942
Log:
Fix PR bootstrap/48403.

2011-04-04  Bernd Schmidt  <ber...@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.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/haifa-sched.c

Reply via email to