]> granicus.if.org Git - clang/commitdiff
Update clang to pretend to be gcc-4.2.
authorDaniel Dunbar <daniel@zuster.org>
Fri, 26 Sep 2008 01:13:13 +0000 (01:13 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Fri, 26 Sep 2008 01:13:13 +0000 (01:13 +0000)
 - This really needs to be automated and configurable.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56635 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Lex/Preprocessor.cpp

index 81a09f5bfa427db636de15a77a04c1d9038e2095..36e80c91cfa326cc84f99e126539e4b15ddc2619 100644 (file)
@@ -439,14 +439,14 @@ static void InitializePredefinedMacros(Preprocessor &PP,
   DefineBuiltinMacro(Buf, "__clang__=1");  // Clang Frontend
   
   // Compiler set macros.
-  DefineBuiltinMacro(Buf, "__APPLE_CC__=5250");
+  DefineBuiltinMacro(Buf, "__APPLE_CC__=5621");
   DefineBuiltinMacro(Buf, "__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__=1050");
-  DefineBuiltinMacro(Buf, "__GNUC_MINOR__=0");
+  DefineBuiltinMacro(Buf, "__GNUC_MINOR__=2");
   DefineBuiltinMacro(Buf, "__GNUC_PATCHLEVEL__=1");
   DefineBuiltinMacro(Buf, "__GNUC__=4");
   DefineBuiltinMacro(Buf, "__GXX_ABI_VERSION=1002");
-  DefineBuiltinMacro(Buf, "__VERSION__=\"4.0.1 (Apple Computer, Inc. "
-                     "build 5250)\"");
+  DefineBuiltinMacro(Buf, "__VERSION__=\"4.2.1 (Apple Computer, Inc. "
+                     "build 5621) (dot 3)\"");
   
   // Build configuration options.
   DefineBuiltinMacro(Buf, "__DYNAMIC__=1");