r188700 - Bump the value of the __APPLE_CC__ predefined macro up to 6000.

Bob Wilson bob.wilson at apple.com
Mon Aug 19 13:23:37 PDT 2013

Author: bwilson
Date: Mon Aug 19 15:23:37 2013
New Revision: 188700

URL: http://llvm.org/viewvc/llvm-project?rev=188700&view=rev
Bump the value of the __APPLE_CC__ predefined macro up to 6000.

The previous value was set to match some ancient version of Apple's GCC.
The value should be higher than anything used by Apple's GCC, but we don't
intend for this value to be updated in the future. We have other macros to
identify compiler versions. <rdar://problem/14749599>


Modified: cfe/trunk/lib/Basic/Targets.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/Targets.cpp?rev=188700&r1=188699&r2=188700&view=diff
--- cfe/trunk/lib/Basic/Targets.cpp (original)
+++ cfe/trunk/lib/Basic/Targets.cpp Mon Aug 19 15:23:37 2013
@@ -88,7 +88,7 @@ static void getDarwinDefines(MacroBuilde
                              const llvm::Triple &Triple,
                              StringRef &PlatformName,
                              VersionTuple &PlatformMinVersion) {
-  Builder.defineMacro("__APPLE_CC__", "5621");
+  Builder.defineMacro("__APPLE_CC__", "6000");

More information about the cfe-commits mailing list