OSDN Git Service

If -Os use load/store multiple instructions
authormeissner <meissner@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 31 Jul 1998 17:30:57 +0000 (17:30 +0000)
committermeissner <meissner@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 31 Jul 1998 17:30:57 +0000 (17:30 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@21511 138bc75d-0d04-0410-961f-82ee72b054a4

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

index a58f781..24132f0 100644 (file)
@@ -1,3 +1,8 @@
+Fri Jul 31 20:22:02 1998  Michael Meissner  <meissner@cygnus.com>
+
+       * rs6000.c (rs6000_override_options): If big endian and -Os, use
+       load/store multiple instructions unless user overrides.
+
 Fri Jul 31 17:08:59 1998  Jeffrey A Law  (law@cygnus.com)
 
        * ns32k/netbsd.h: Fix typo.
index d4cb695..987c3ad 100644 (file)
@@ -276,6 +276,11 @@ rs6000_override_options (default_cpu)
        }
     }
 
+  /* If we are optimizing big endian systems for space, use the
+     store multiple instructions.  */
+  if (BYTES_BIG_ENDIAN && optimize_size)
+    target_flags |= MASK_MULTIPLE;
+
   /* If -mmultiple or -mno-multiple was explicitly used, don't
      override with the processor default */
   if (TARGET_MULTIPLE_SET)