From: Daniel Dunbar Date: Fri, 26 Sep 2008 01:13:13 +0000 (+0000) Subject: Update clang to pretend to be gcc-4.2. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=38a67c9dfb23f6bc18ac2423b1e72efe8a22cc56;p=clang Update clang to pretend to be gcc-4.2. - 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 --- diff --git a/lib/Lex/Preprocessor.cpp b/lib/Lex/Preprocessor.cpp index 81a09f5bfa..36e80c91cf 100644 --- a/lib/Lex/Preprocessor.cpp +++ b/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");