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
This commit is contained in:
Eric Botcazou 2012-09-04 19:05:38 +00:00 committed by Eric Botcazou
parent 92383a2a11
commit 88a8ba9581
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
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

View File

@ -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