summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/Preprocessor.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2008-09-26 01:13:13 +0000
committerDaniel Dunbar <daniel@zuster.org>2008-09-26 01:13:13 +0000
commitb5fe494a2cdd33a0b069939795043f538e9a492c (patch)
tree8da8c6455e275c10f7859662ca30c3f0a50575f9 /clang/lib/Lex/Preprocessor.cpp
parent2c61b32bebc442b0dd4af6b3af6296ce3c2ba4a1 (diff)
downloadbcm5719-llvm-b5fe494a2cdd33a0b069939795043f538e9a492c.tar.gz
bcm5719-llvm-b5fe494a2cdd33a0b069939795043f538e9a492c.zip
Update clang to pretend to be gcc-4.2.
- This really needs to be automated and configurable. llvm-svn: 56635
Diffstat (limited to 'clang/lib/Lex/Preprocessor.cpp')
-rw-r--r--clang/lib/Lex/Preprocessor.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/Lex/Preprocessor.cpp b/clang/lib/Lex/Preprocessor.cpp
index 81a09f5bfa4..36e80c91cfa 100644
--- a/clang/lib/Lex/Preprocessor.cpp
+++ b/clang/lib/Lex/Preprocessor.cpp
@@ -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");
OpenPOWER on IntegriCloud