From 265e6a0ae0e9dc0c810edc6158299f0ed1aa05ab Mon Sep 17 00:00:00 2001 From: Clement Chigot Date: Wed, 24 Apr 2019 18:03:47 +0000 Subject: [PATCH] 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 * 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 | 7 +++++++ gcc/config/rs6000/aix71.h | 6 ++++++ gcc/config/rs6000/aix72.h | 6 ++++++ 3 files changed, 19 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a8f5212aca5..d4c5b31613c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2019-04-24 Clement Chigot + + * 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 PR target/90193 diff --git a/gcc/config/rs6000/aix71.h b/gcc/config/rs6000/aix71.h index b30e71941d8..263cc42b9dd 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 9f02aeacd51..065e1ebeadc 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 -- 2.30.2