AIX 6.1 assembler allows enough alignment for Altivec to work with
GCC, so the following patch allows -mcpu= to enable Altivec and VSX by
default.

Bootstrapped on powerpc-ibm-aix7.1.0.0.

- David

        * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.

Index: aix61.h
===================================================================
--- aix61.h     (revision 195916)
+++ aix61.h     (working copy)
@@ -133,6 +133,9 @@
 #undef  PROCESSOR_DEFAULT64
 #define PROCESSOR_DEFAULT64 PROCESSOR_POWER7

+/* AIX 6.1 kernel and assembler have necessary support for Altivec and VSX.  */
+#undef OS_MISSING_ALTIVEC
+
 /* Define this macro as a C expression for the initializer of an
    array of string to tell the driver program which options are
    defaults for this target and thus do not need to be handled

Reply via email to