rs6000.c (rs6000_override_options): Use string instructions when optimizing for size.
authorDavid Edelsohn <edelsohn@gnu.org>
Sat, 2 Nov 2002 21:55:55 +0000 (21:55 +0000)
committerDavid Edelsohn <dje@gcc.gnu.org>
Sat, 2 Nov 2002 21:55:55 +0000 (16:55 -0500)
        * config/rs6000/rs6000.c (rs6000_override_options): Use string
        instructions when optimizing for size.

From-SVN: r58759

gcc/ChangeLog
gcc/config/rs6000/rs6000.c

index 76133575f5bd298c53cd2d6fb8d25fd9d73fee3d..3cef1df2466c994a34ea84052351d14b96d8d4c1 100644 (file)
@@ -1,3 +1,8 @@
+2002-11-02  David Edelsohn  <edelsohn@gnu.org>
+
+       * config/rs6000/rs6000.c (rs6000_override_options): Use string
+       instructions when optimizing for size.
+
 2002-11-02  Kazu Hirata  <kazu@cs.umass.edu>
 
        * config/h8300/h8300.h: Fix comment typos.
index fe74ffda10cd3a106073484cf5669c176bf301c8..4dd911ee221c1b48cd876410e3fdb56ef3fed8e2 100644 (file)
@@ -558,10 +558,10 @@ rs6000_override_options (default_cpu)
   if (rs6000_cpu == PROCESSOR_PPC8540)
     rs6000_isel = 1;
 
-  /* If we are optimizing big endian systems for space, use the store
-     multiple instructions.  */
+  /* If we are optimizing big endian systems for space, use the load/store
+     multiple and string instructions.  */
   if (BYTES_BIG_ENDIAN && optimize_size)
-    target_flags |= MASK_MULTIPLE;
+    target_flags |= MASK_MULTIPLE | MASK_STRING;
 
   /* If -mmultiple or -mno-multiple was explicitly used, don't
      override with the processor default */