[cfe-commits] r56635 - /cfe/trunk/lib/Lex/Preprocessor.cpp
Daniel Dunbar
daniel at zuster.org
Thu Sep 25 18:13:13 PDT 2008
Author: ddunbar
Date: Thu Sep 25 20:13:13 2008
New Revision: 56635
URL: http://llvm.org/viewvc/llvm-project?rev=56635&view=rev
Log:
Update clang to pretend to be gcc-4.2.
- This really needs to be automated and configurable.
Modified:
cfe/trunk/lib/Lex/Preprocessor.cpp
Modified: cfe/trunk/lib/Lex/Preprocessor.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Lex/Preprocessor.cpp?rev=56635&r1=56634&r2=56635&view=diff
==============================================================================
--- cfe/trunk/lib/Lex/Preprocessor.cpp (original)
+++ cfe/trunk/lib/Lex/Preprocessor.cpp Thu Sep 25 20:13:13 2008
@@ -439,14 +439,14 @@
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");
More information about the cfe-commits
mailing list