Commit 3189dd20 authored by Jake Egan's avatar Jake Egan
Browse files

[AIX] Define __THW_PPC__ macro

%%%
This patch defines the macro __THW_PPC__ for AIX.
%%%

Tested with SPEC.

Reviewed By: cebowleratibm

Differential Revision: https://reviews.llvm.org/D107243
parent 420e1d4c
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -257,6 +257,9 @@ void PPCTargetInfo::getTargetDefines(const LangOptions &Opts,
    Builder.defineMacro("__ppc64__");
    Builder.defineMacro("__PPC64__");
  }
  if (getTriple().isOSAIX()) {
    Builder.defineMacro("__THW_PPC__");
  }

  // Target properties.
  if (getTriple().getArch() == llvm::Triple::ppc64le ||
+1 −0
Original line number Diff line number Diff line
@@ -539,6 +539,7 @@
// PPC-AIX:#define __SIZE_TYPE__ long unsigned int
// PPC-AIX:#define __SIZE_WIDTH__ 32
// PPC-AIX:#define __THW_BIG_ENDIAN__ 1
// PPC-AIX:#define __THW_PPC__ 1
// PPC-AIX:#define __TOS_AIX__ 1
// PPC-AIX:#define __UINT16_C_SUFFIX__
// PPC-AIX:#define __UINT16_MAX__ 65535