Description:
* This patch removes -mvsx and -maltivec for go aix/ppc.
These options don't seem compatible with Go stack layout.
Tests:
* AIX 7.2: Configure/Build: SUCCESS
Changelog:
* config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Remove OPTION_MASK_VSX
and OPTION_MASK_ALTIVEC from rs6000_isa_flags with Go on 32 bits.
* config/rs6000/aix72.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
Clément Chigot
ATOS Bull SAS
1 rue de Provence - 38432 Échirolles - France
Index: config/rs6000/aix71.h
===================================================================
--- config/rs6000/aix71.h (revision 270457)
+++ config/rs6000/aix71.h (working copy)
@@ -56,6 +56,12 @@ do { \
{ \
rs6000_current_cmodel = CMODEL_LARGE; \
} \
+ if (! strcmp (lang_hooks.name, "GNU Go") \
+ && TARGET_32BIT) \
+ { \
+ /* aix/ppc doesn't support -mvsx and -maltivec with Go */ \
+ rs6000_isa_flags &= ~(OPTION_MASK_VSX | OPTION_MASK_ALTIVEC); \
+ } \
} while (0)
#undef ASM_SPEC
Index: config/rs6000/aix72.h
===================================================================
--- config/rs6000/aix72.h (revision 270457)
+++ config/rs6000/aix72.h (working copy)
@@ -56,6 +56,12 @@ do { \
{ \
rs6000_current_cmodel = CMODEL_LARGE; \
} \
+ if (! strcmp (lang_hooks.name, "GNU Go") \
+ && TARGET_32BIT) \
+ { \
+ /* aix/ppc doesn't support -mvsx and -maltivec with Go */ \
+ rs6000_isa_flags &= ~(OPTION_MASK_VSX | OPTION_MASK_ALTIVEC); \
+ } \
} while (0)
#undef ASM_SPEC