[Patch] Altivec ABI as default for powerpc64 linux

Hartmut Penner HPENNER@de.ibm.com
Fri Jan 30 10:40:00 GMT 2004


Hello,
      I would propose to set ALTIVEC as the default ABI
for ppc64 linux.
This will not change anything for programs not having any
vector types. But it will allow programs to work correctly
which are using vector. This is also true for programs using
vector types, but do not use the altivec instruction set
(which is not set as default !).
And, btw, without that default, we don't comply to the latest
ppc64 Linux ABI...

OK to commit (also 3.4) ?


ChangeLog
2004-01-30  Hartmut Penner <hpenner@de.ibm.com>

      * config/rs6000/rs6000.c (rs6000_override_options)
      Set Altivec ABI as default for powerpc64 linux.

Index: config/rs6000/rs6000.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/rs6000.c,v
retrieving revision 1.583
diff -u -p -r1.583 rs6000.c
--- config/rs6000/rs6000.c    27 Jan 2004 22:00:55 -0000    1.583
+++ config/rs6000/rs6000.c    30 Jan 2004 10:00:22 -0000
@@ -840,6 +840,13 @@ rs6000_override_options (const char *def
      rs6000_long_double_type_size = size;
     }

+  /* Set Altivec ABI as default for powerpc64 linux.  */
+  if (TARGET_ELF && TARGET_64BIT)
+    {
+      rs6000_altivec_abi = 1;
+      rs6000_altivec_vrsave = 1;
+    }
+
   /* Handle -mabi= options.  */
   rs6000_parse_abi_options ();






More information about the Gcc-patches mailing list