OSDN Git Service

PR target/36684
authorkkojima <kkojima@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 4 Jul 2008 20:53:18 +0000 (20:53 +0000)
committerkkojima <kkojima@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 4 Jul 2008 20:53:18 +0000 (20:53 +0000)
* config/sh/sh.h (OVERRIDE_OPTIONS): Disable -fschedule-insns
for PIC.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@137487 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/sh/sh.h

index df56c9e..f518086 100644 (file)
@@ -1,3 +1,9 @@
+2008-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
+
+       PR target/36684
+       * config/sh/sh.h (OVERRIDE_OPTIONS): Disable -fschedule-insns
+       for PIC.
+
 2008-07-04  Jakub Jelinek  <jakub@redhat.com>
 
        * tree-switch-conversion.c (build_one_array, gen_def_assigns): Use
index 2ff4a81..5204847 100644 (file)
@@ -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 \