aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable OPTION_MASK_VSX and OPTION_MASK_ALTIVEC...
authorClement Chigot <clement.chigot@atos.net>
Wed, 24 Apr 2019 18:03:47 +0000 (18:03 +0000)
committerDavid Edelsohn <dje@gcc.gnu.org>
Wed, 24 Apr 2019 18:03:47 +0000 (14:03 -0400)
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

gcc/ChangeLog
gcc/config/rs6000/aix71.h
gcc/config/rs6000/aix72.h

index a8f5212aca582be1e85732de8bccf19f34c7719d..d4c5b31613c51c6c2a42378fcad97ffd2959c596 100644 (file)
@@ -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
index b30e71941d81adf94bde5525a97402fc6b342368..263cc42b9dda18c373b4394da3b772d9bfb8af4a 100644 (file)
@@ -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 9f02aeacd511739e2076004d38c0f5b7e578b78d..065e1ebeadcdb8cab9f7d1b652da458f427e51a4 100644 (file)
@@ -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