[PATCH] D107243: Define __THW_PPC__ macro
Jake Egan via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Aug 1 14:18:48 PDT 2021
Jake-Egan created this revision.
Herald added subscribers: shchenz, kbarton, nemanjai.
Jake-Egan requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Repository:
rG LLVM Github Monorepo
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
@@ -538,6 +538,7 @@
// PPC-AIX:#define __SIZE_MAX__ 4294967295UL
// PPC-AIX:#define __SIZE_TYPE__ long unsigned int
// PPC-AIX:#define __SIZE_WIDTH__ 32
+// 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.363354.patch
Type: text/x-patch
Size: 937 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210801/79ef6a2f/attachment.bin>
More information about the cfe-commits
mailing list