Index: clang/include/clang/Driver/Options.td =================================================================== --- clang/include/clang/Driver/Options.td +++ clang/include/clang/Driver/Options.td @@ -3416,10 +3416,12 @@ def EB : Flag<["-"], "EB">, Alias; def m16 : Flag<["-"], "m16">, Group, Flags<[NoXarchOption, CoreOption]>; def m32 : Flag<["-"], "m32">, Group, Flags<[NoXarchOption, CoreOption]>; +def maix32 : Flag<["-"], "maix32">, Alias; def mqdsp6_compat : Flag<["-"], "mqdsp6-compat">, Group, Flags<[NoXarchOption,CC1Option]>, HelpText<"Enable hexagon-qdsp6 backward compatibility">, MarshallingInfoFlag>; def m64 : Flag<["-"], "m64">, Group, Flags<[NoXarchOption, CoreOption]>; +def maix64 : Flag<["-"], "maix64">, Alias; def mx32 : Flag<["-"], "mx32">, Group, Flags<[NoXarchOption, CoreOption]>; def mabi_EQ : Joined<["-"], "mabi=">, Group; def miamcu : Flag<["-"], "miamcu">, Group, Flags<[NoXarchOption, CoreOption]>, Index: clang/test/Driver/aix-maix.c =================================================================== --- /dev/null +++ clang/test/Driver/aix-maix.c @@ -0,0 +1,10 @@ +// Check GCC AIX bitmode compat options. + +// RUN: %clang -target powerpc-ibm-aix -maix64 -### -c %s 2>&1 | \ +// RUN: FileCheck --check-prefix=CHECK64 %s + +// RUN: %clang -target powerpc64-ibm-aix -maix32 -### -c %s 2>&1 | \ +// RUN: FileCheck --check-prefix=CHECK32 %s + +// CHECK32: Target: powerpc-ibm-aix +// CHECK64: Target: powerpc64-ibm-aix