diff options
author | Kaz Kojima <kkojima@gcc.gnu.org> | 2008-07-04 20:53:18 +0000 |
---|---|---|
committer | Kaz Kojima <kkojima@gcc.gnu.org> | 2008-07-04 20:53:18 +0000 |
commit | 0dcd6f42e551451cb9e268e8b9a2647c36f505b8 (patch) | |
tree | 597badc66894c00919dd15f8efe3887295ccc7b1 /gcc/config/sh/sh.h | |
parent | 4acedca122b595670e54d836ccc4b96801e8bb99 (diff) | |
download | gcc-0dcd6f42e551451cb9e268e8b9a2647c36f505b8.zip gcc-0dcd6f42e551451cb9e268e8b9a2647c36f505b8.tar.gz gcc-0dcd6f42e551451cb9e268e8b9a2647c36f505b8.tar.bz2 |
re PR target/36684 (spill failure for class 'R0_REGS' on sh4 with -fPIC -O2)
PR target/36684
* config/sh/sh.h (OVERRIDE_OPTIONS): Disable -fschedule-insns
for PIC.
From-SVN: r137487
Diffstat (limited to 'gcc/config/sh/sh.h')
-rw-r--r-- | gcc/config/sh/sh.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/config/sh/sh.h b/gcc/config/sh/sh.h index 2ff4a81..5204847 100644 --- a/gcc/config/sh/sh.h +++ b/gcc/config/sh/sh.h @@ -1,6 +1,6 @@ /* Definitions of target machine for GNU compiler for Renesas / SuperH SH. Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, - 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc. + 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. Contributed by Steve Chamberlain (sac@cygnus.com). Improved by Jim Wilson (wilson@cygnus.com). @@ -712,8 +712,8 @@ do { \ to the pressure on R0. */ \ /* Enable sched1 for SH4; ready queue will be reordered by \ the target hooks when pressure is high. We can not do this for \ - SH3 and lower as they give spill failures for R0. */ \ - if (!TARGET_HARD_SH4) \ + PIC, SH3 and lower as they give spill failures for R0. */ \ + if (!TARGET_HARD_SH4 || flag_pic) \ flag_schedule_insns = 0; \ /* ??? Current exception handling places basic block boundaries \ after call_insns. It causes the high pressure on R0 and gives \ |