[PATCH] D107243: [AIX] Define __THW_PPC__ macro
Jake Egan via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 6 06:53:09 PDT 2021
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG3189dd205a58: [AIX] Define __THW_PPC__ macro (authored by Jake-Egan).
Changed prior to commit:
https://reviews.llvm.org/D107243?vs=363354&id=364785#toc
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D107243/new/
https://reviews.llvm.org/D107243
Files:
clang/lib/Basic/Targets/PPC.cpp
clang/test/Preprocessor/init-ppc.c
Index: clang/test/Preprocessor/init-ppc.c
===================================================================
--- clang/test/Preprocessor/init-ppc.c
+++ clang/test/Preprocessor/init-ppc.c
@@ -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
Index: clang/lib/Basic/Targets/PPC.cpp
===================================================================
--- clang/lib/Basic/Targets/PPC.cpp
+++ clang/lib/Basic/Targets/PPC.cpp
@@ -257,6 +257,9 @@
Builder.defineMacro("__ppc64__");
Builder.defineMacro("__PPC64__");
}
+ if (getTriple().isOSAIX()) {
+ Builder.defineMacro("__THW_PPC__");
+ }
// Target properties.
if (getTriple().getArch() == llvm::Triple::ppc64le ||
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D107243.364785.patch
Type: text/x-patch
Size: 932 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210806/4cb9f2af/attachment.bin>
More information about the cfe-commits
mailing list