diff mbox series

AIX 7.1 and 7.2 configure support

Message ID CAGWvnymWzgDW87NWoLE-33Lm7wFudn+m9+vijezTLBDTJvH2jA@mail.gmail.com
State New
Headers show
Series AIX 7.1 and 7.2 configure support | expand

Commit Message

David Edelsohn Feb. 28, 2018, 7:58 p.m. UTC
AIX 7.1 continues to support Power4 as the minimum ISA level, so this
reverts the recent patch to aix71.h.

AIX 7.2 requires Power7 as the minimum ISA level.  The second part of
this patch adds a new aix72.h file and updates config.gcc.

Thanks, David

* config.gcc (powerpc-ibm-aix7.1.*): New stanza.
(powerpc-ibm-aix[789]*): Default to AIX 7.2.
* config/rs6000/aix71.h (TARGET_DEFAULT): Revert to Power4 ISA.
* config/rs6000/aix72.h: New file.
diff mbox series

Patch

Index: config.gcc
===================================================================
--- config.gcc  (revision 258066)
+++ config.gcc  (working copy)
@@ -2648,7 +2648,7 @@ 
        extra_headers=altivec.h
        default_use_cxa_atexit=yes
        ;;
-rs6000-ibm-aix[789].* | powerpc-ibm-aix[789].*)
+rs6000-ibm-aix7.1.* | powerpc-ibm-aix7.1.*)
        tm_file="${tm_file} rs6000/aix.h rs6000/aix71.h rs6000/xcoff.h
rs6000/aix-stdint.h"
        tmake_file="rs6000/t-aix52 t-slibgcc"
        extra_options="${extra_options} rs6000/aix64.opt"
@@ -2658,6 +2658,16 @@ 
        extra_headers="altivec.h amo.h"
        default_use_cxa_atexit=yes
        ;;
+rs6000-ibm-aix[789].* | powerpc-ibm-aix[789].*)
+       tm_file="${tm_file} rs6000/aix.h rs6000/aix72.h rs6000/xcoff.h
rs6000/aix-stdint.h"
+       tmake_file="rs6000/t-aix52 t-slibgcc"
+       extra_options="${extra_options} rs6000/aix64.opt"
+       use_collect2=yes
+       thread_file='aix'
+       use_gcc_stdint=wrap
+       extra_headers="altivec.h amo.h"
+       default_use_cxa_atexit=yes
+       ;;
 rl78-*-elf*)
        tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}"
        target_has_targetm_common=no

Index: config/rs6000/aix71.h
===================================================================
--- config/rs6000/aix71.h       (revision 258066)
+++ config/rs6000/aix71.h       (working copy)
@@ -132,7 +132,7 @@ 
 #undef RS6000_CPU

 #undef  TARGET_DEFAULT
-#define TARGET_DEFAULT ISA_2_5_MASKS_EMBEDDED
+#define TARGET_DEFAULT (MASK_PPC_GPOPT | MASK_PPC_GFXOPT | MASK_MFCRF)

 #undef  PROCESSOR_DEFAULT
 #define PROCESSOR_DEFAULT PROCESSOR_POWER7