Commit 88a8ba95 by Eric Botcazou Committed by Eric Botcazou

re PR rtl-optimization/54456 (ICE: in init_seqno, at sel-sched.c:6797 with…

re PR rtl-optimization/54456 (ICE: in init_seqno, at sel-sched.c:6797 with -fschedule-insns -fselective-scheduling)

	PR rtl-optimization/54456
	* sched-rgn.c (gate_handle_sched): Return 1 only if optimize > 0.

From-SVN: r190947
parent 92383a2a
2012-09-04 Eric Botcazou <ebotcazou@adacore.com>
PR rtl-optimization/54456
* sched-rgn.c (gate_handle_sched): Return 1 only if optimize > 0.
2012-09-04 Diego Novillo <dnovillo@google.com>
PR bootstrap/54478
......
......@@ -3473,7 +3473,7 @@ static bool
gate_handle_sched (void)
{
#ifdef INSN_SCHEDULING
return flag_schedule_insns && dbg_cnt (sched_func);
return optimize > 0 && flag_schedule_insns && dbg_cnt (sched_func);
#else
return 0;
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment