summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2000-09-07 04:12:47 +0000
committeraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2000-09-07 04:12:47 +0000
commitc8e9e836bb851a653ced882cf40d556c61ec88d5 (patch)
tree9a2d937938684c6e599a8786ea5e43104db915cb
parentfca3bd4ced6a9956099ed5b377744000fba2d535 (diff)
downloadppe42-gcc-c8e9e836bb851a653ced882cf40d556c61ec88d5.tar.gz
ppe42-gcc-c8e9e836bb851a653ced882cf40d556c61ec88d5.zip
* config/sh/sh.h (OVERRIDE_OPTIONS): Don't disable function
CSE unless generating PIC. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36226 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog3
-rw-r--r--gcc/config/sh/sh.h2
2 files changed, 4 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 3f090881a40..e488f0f878e 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/config/sh/sh.h b/gcc/config/sh/sh.h
index feb58530deb..6e73788e22e 100644
--- a/gcc/config/sh/sh.h
+++ b/gcc/config/sh/sh.h
@@ -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 \
OpenPOWER on IntegriCloud