rs6000.c (rs6000_dwarf_register_span): Differentiate endianness.
authorAldy Hernandez <aldyh@redhat.com>
Thu, 13 Mar 2003 15:04:35 +0000 (15:04 +0000)
committerAldy Hernandez <aldyh@gcc.gnu.org>
Thu, 13 Mar 2003 15:04:35 +0000 (15:04 +0000)
2003-03-13  Aldy Hernandez  <aldyh@redhat.com>

        * config/rs6000/rs6000.c (rs6000_dwarf_register_span):
        Differentiate endianness.
        (s6000_override_options): Use cpu type instead of TARGET_SPE.

From-SVN: r64308

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

index eadd1e882cba5f1710800ecae6c1eb419d810643..068a854ab3603a46baee9319f7e1bdf1a097606e 100644 (file)
@@ -1,3 +1,9 @@
+2003-03-13  Aldy Hernandez  <aldyh@redhat.com>
+
+        * config/rs6000/rs6000.c (rs6000_dwarf_register_span):
+        Differentiate endianness.
+        (s6000_override_options): Use cpu type instead of TARGET_SPE.
+
 2003-03-13  Nick Clifton  <nickc@redhat.com>
 
        * config/arm/arm.c (print_multi_reg): Do not generate a type 2
index d8ceb4a71acfaa8e531b72be2e68562285e64d2a..b95e27b2ff1abbc7f40b48f6e1ef7d486e714585 100644 (file)
@@ -695,7 +695,7 @@ rs6000_override_options (default_cpu)
 
   /* 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)
+  if (rs6000_cpu == PROCESSOR_PPC8540 && (target_flags & MASK_STRING) != 0)
     target_flags = target_flags & ~MASK_STRING;
 
   /* Handle -m(no-)longcall option.  This is a bit of a cheap hack,
@@ -13759,12 +13759,13 @@ rs6000_dwarf_register_span (reg)
      64-bits.  */
   return
     gen_rtx_PARALLEL (VOIDmode,
-                     gen_rtvec (2,
-                                gen_rtx_REG (SImode, regno),
-                                /* Who, where, what?  1200?  This
-                                   will get changed to a sane value
-                                   when the SPE ABI finalizes.  */
-                                gen_rtx_REG (SImode, regno + 1200)));
+                     BYTES_BIG_ENDIAN
+                     ? gen_rtvec (2,
+                                  gen_rtx_REG (SImode, regno + 1200),
+                                  gen_rtx_REG (SImode, regno))
+                     : gen_rtvec (2,
+                                  gen_rtx_REG (SImode, regno),
+                                  gen_rtx_REG (SImode, regno + 1200)));
 }
 
 #include "gt-rs6000.h"