[cfe-commits] [PATCH] More predefined symbols for PowerPC targets
Brad Smith
brad at comstyle.com
Thu Aug 2 07:03:58 PDT 2012
Comparing the predefined symbols that OpenBSD/powerpc's gcc target
provides vs Clang showed that were a few missing in Clang's driver
config. The attached patch adds the missing ones.
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
-------------- next part --------------
Index: lib/Basic/Targets.cpp
===================================================================
--- lib/Basic/Targets.cpp (revision 161175)
+++ lib/Basic/Targets.cpp (working copy)
@@ -764,7 +764,10 @@
MacroBuilder &Builder) const {
// Target identification.
Builder.defineMacro("__ppc__");
+ Builder.defineMacro("__PPC");
+ Builder.defineMacro("__PPC__");
Builder.defineMacro("_ARCH_PPC");
+ Builder.defineMacro("__powerpc");
Builder.defineMacro("__powerpc__");
Builder.defineMacro("__POWERPC__");
if (PointerWidth == 64) {
@@ -773,8 +776,6 @@
Builder.defineMacro("__LP64__");
Builder.defineMacro("__powerpc64__");
Builder.defineMacro("__ppc64__");
- } else {
- Builder.defineMacro("__ppc__");
}
// Target properties.
More information about the cfe-commits
mailing list