Commit 2b703e1a by Kaz Kojima

sh.h (OVERRIDE_OPTIONS): Clear flag_schedule_insns unless -fschedule-insns is specified.

	* config/sh/sh.h (OVERRIDE_OPTIONS): Clear flag_schedule_insns
	unless -fschedule-insns is specified.

From-SVN: r147454
parent c3537723
2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org> 2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
* config/sh/sh.h (OVERRIDE_OPTIONS): Clear flag_schedule_insns
unless -fschedule-insns is specified.
2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
PR target/39561 PR target/39561
* config/sh/sh.h (OPTIMIZATION_OPTIONS): Don't set * config/sh/sh.h (OPTIMIZATION_OPTIONS): Don't set
TARGET_EXPAND_CBRANCHDI4. TARGET_EXPAND_CBRANCHDI4.
......
...@@ -709,8 +709,9 @@ do { \ ...@@ -709,8 +709,9 @@ do { \
/* Never run scheduling before reload, since that can \ /* Never run scheduling before reload, since that can \
break global alloc, and generates slower code anyway due \ break global alloc, and generates slower code anyway due \
to the pressure on R0. */ \ to the pressure on R0. */ \
/* Enable sched1 for SH4; ready queue will be reordered by \ /* Enable sched1 for SH4 if the user explicitly requests. \
the target hooks when pressure is high. We can not do this for \ When sched1 is enabled, the ready queue will be reordered by \
the target hooks if pressure is high. We can not do this for \
PIC, SH3 and lower as they give spill failures for R0. */ \ PIC, SH3 and lower as they give spill failures for R0. */ \
if (!TARGET_HARD_SH4 || flag_pic) \ if (!TARGET_HARD_SH4 || flag_pic) \
flag_schedule_insns = 0; \ flag_schedule_insns = 0; \
...@@ -725,6 +726,8 @@ do { \ ...@@ -725,6 +726,8 @@ do { \
warning (0, "ignoring -fschedule-insns because of exception handling bug"); \ warning (0, "ignoring -fschedule-insns because of exception handling bug"); \
flag_schedule_insns = 0; \ flag_schedule_insns = 0; \
} \ } \
else if (flag_schedule_insns == 2) \
flag_schedule_insns = 0; \
} \ } \
\ \
if (align_loops == 0) \ if (align_loops == 0) \
......
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