sh.h (OVERRIDE_OPTIONS): Don't disable function CSE unless generating PIC.
authorAlexandre Oliva <aoliva@redhat.com>
Thu, 7 Sep 2000 04:12:47 +0000 (04:12 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Thu, 7 Sep 2000 04:12:47 +0000 (04:12 +0000)
* config/sh/sh.h (OVERRIDE_OPTIONS): Don't disable function
CSE unless generating PIC.

From-SVN: r36226

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

index 3f090881a40fdd01d9255b538eb9a221990d2c36..e488f0f878ee33ab094602f6b547e2c5ad76888c 100644 (file)
@@ -1,5 +1,8 @@
 2000-09-07  Alexandre Oliva  <aoliva@redhat.com>
 
+       * config/sh/sh.h (OVERRIDE_OPTIONS): Don't disable function
+       CSE unless generating PIC.
+
        * config/sh/sh.md (symPLT_label2reg): Force the initialization of
        the PIC register.
 
index feb58530deb3e1f4735355dca43890abca8c9bec..6e73788e22ec12663d29604b21928bb8dfce131a 100644 (file)
@@ -266,7 +266,7 @@ do {                                                                        \
    else                                                                        \
     flag_omit_frame_pointer = 0;                                       \
                                                                        \
-  if (! TARGET_PREFERGOT)                                              \
+  if (flag_pic && ! TARGET_PREFERGOT)                                  \
     flag_no_function_cse = 1;                                          \
                                                                        \
   /* Never run scheduling before reload, since that can                        \