PR rtl-optimization/54456
* sched-rgn.c (gate_handle_sched): Return 1 only if optimize > 0.
From-SVN: r190947
+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
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