aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClement Chigot <clement.chigot@atos.net>2019-04-24 18:03:47 +0000
committerDavid Edelsohn <dje@gcc.gnu.org>2019-04-24 14:03:47 -0400
commit265e6a0ae0e9dc0c810edc6158299f0ed1aa05ab (patch)
treedcf74f5e694427c38acc6b31741c5d9e90986540
parent303b2264579de25b5d1491bc1684638a1a351126 (diff)
downloadgcc-265e6a0ae0e9dc0c810edc6158299f0ed1aa05ab.zip
gcc-265e6a0ae0e9dc0c810edc6158299f0ed1aa05ab.tar.gz
gcc-265e6a0ae0e9dc0c810edc6158299f0ed1aa05ab.tar.bz2
aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags for Go on...
2019-04-24 Clement Chigot <clement.chigot@atos.net> * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags for Go on 32 bit AIX. * config/rs6000/aix72.h: Likewise. From-SVN: r270553
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/config/rs6000/aix71.h6
-rw-r--r--gcc/config/rs6000/aix72.h6
3 files changed, 19 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index a8f5212..d4c5b31 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+2019-04-24 Clement Chigot <clement.chigot@atos.net>
+
+ * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
+ OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
+ for Go on 32 bit AIX.
+ * config/rs6000/aix72.h: Likewise.
+
2019-04-24 Jakub Jelinek <jakub@redhat.com>
PR target/90193
diff --git a/gcc/config/rs6000/aix71.h b/gcc/config/rs6000/aix71.h
index b30e719..263cc42 100644
--- a/gcc/config/rs6000/aix71.h
+++ b/gcc/config/rs6000/aix71.h
@@ -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
diff --git a/gcc/config/rs6000/aix72.h b/gcc/config/rs6000/aix72.h
index 9f02aea..065e1eb 100644
--- a/gcc/config/rs6000/aix72.h
+++ b/gcc/config/rs6000/aix72.h
@@ -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