summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4>2003-03-11 21:26:12 +0000
committeraldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4>2003-03-11 21:26:12 +0000
commit6e1f8d16e136cd98bdbb5be6289db74427893d24 (patch)
tree431b6ba8fef32f0cea682afbbe947d8add24f0df
parent082b852a0be17e19dbc4f6444b60472fa5406d27 (diff)
downloadppe42-gcc-6e1f8d16e136cd98bdbb5be6289db74427893d24.tar.gz
ppe42-gcc-6e1f8d16e136cd98bdbb5be6289db74427893d24.zip
2003-03-11 Aldy Hernandez <aldyh@redhat.com>
* config/rs6000/rs6000.c (rs6000_override_options): Disable string instructions for e500. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@64188 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/rs6000/rs6000.c5
2 files changed, 10 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index da85a8b17a3..c05eeb63634 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2003-03-11 Aldy Hernandez <aldyh@redhat.com>
+
+ * config/rs6000/rs6000.c (rs6000_override_options): Disable string
+ instructions for e500.
+
2003-03-11 Neil Booth <neil@daikokuya.co.uk>
* Makefile.in: Update.
diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c
index 17997fd0f92..38a2e3212f8 100644
--- a/gcc/config/rs6000/rs6000.c
+++ b/gcc/config/rs6000/rs6000.c
@@ -698,6 +698,11 @@ rs6000_override_options (default_cpu)
SUBSUBTARGET_OVERRIDE_OPTIONS;
#endif
+ /* The e500 does not have string instructions, and we set
+ MASK_STRING above when optimizing for size. */
+ if (TARGET_SPE && (target_flags & MASK_STRING) != 0)
+ target_flags = target_flags & ~MASK_STRING;
+
/* Handle -m(no-)longcall option. This is a bit of a cheap hack,
using TARGET_OPTIONS to handle a toggle switch, but we're out of
bits in target_flags so TARGET_SWITCHES cannot be used.
OpenPOWER on IntegriCloud