mirror of
https://abf.rosa.ru/djam/llvm13.git
synced 2025-02-24 08:52:45 +00:00
70 lines
3.5 KiB
Diff
70 lines
3.5 KiB
Diff
--- llvm-3.5/tools/clang/lib/Driver/Driver.cpp.gcc49~ 2014-08-22 22:54:39.000000000 +0200
|
|
+++ llvm-3.5/tools/clang/lib/Driver/Driver.cpp 2014-08-25 22:24:57.688608644 +0200
|
|
@@ -683,7 +683,7 @@ bool Driver::HandleImmediateArgs(const C
|
|
// If we want to return a more correct answer some day, then we should
|
|
// introduce a non-pedantically GCC compatible mode to Clang in which we
|
|
// provide sensible definitions for -dumpversion, __VERSION__, etc.
|
|
- llvm::outs() << "4.2.1\n";
|
|
+ llvm::outs() << "4.9.1\n";
|
|
return false;
|
|
}
|
|
|
|
--- llvm-3.5/tools/clang/lib/Driver/Tools.cpp.gcc49~ 2014-08-22 22:54:39.000000000 +0200
|
|
+++ llvm-3.5/tools/clang/lib/Driver/Tools.cpp 2014-08-25 22:24:57.689608632 +0200
|
|
@@ -6249,7 +6249,7 @@ void openbsd::Link::ConstructJob(Compila
|
|
if (Triple.substr(0, 6) == "x86_64")
|
|
Triple.replace(0, 6, "amd64");
|
|
CmdArgs.push_back(Args.MakeArgString("-L/usr/lib/gcc-lib/" + Triple +
|
|
- "/4.2.1"));
|
|
+ "/4.9.1"));
|
|
|
|
Args.AddAllArgs(CmdArgs, options::OPT_L);
|
|
Args.AddAllArgs(CmdArgs, options::OPT_T_Group);
|
|
--- llvm-3.5/tools/clang/lib/Frontend/InitPreprocessor.cpp.gcc49~ 2014-08-22 22:54:39.000000000 +0200
|
|
+++ llvm-3.5/tools/clang/lib/Frontend/InitPreprocessor.cpp 2014-08-25 22:24:57.689608632 +0200
|
|
@@ -462,9 +462,9 @@ static void InitializePredefinedMacros(c
|
|
#undef TOSTR
|
|
#undef TOSTR2
|
|
if (!LangOpts.MSVCCompat) {
|
|
- // Currently claim to be compatible with GCC 4.2.1-5621, but only if we're
|
|
+ // Currently claim to be compatible with GCC 4.9.1, but only if we're
|
|
// not compiling for MSVC compatibility
|
|
- Builder.defineMacro("__GNUC_MINOR__", "2");
|
|
+ Builder.defineMacro("__GNUC_MINOR__", "9");
|
|
Builder.defineMacro("__GNUC_PATCHLEVEL__", "1");
|
|
Builder.defineMacro("__GNUC__", "4");
|
|
Builder.defineMacro("__GXX_ABI_VERSION", "1002");
|
|
@@ -482,9 +482,9 @@ static void InitializePredefinedMacros(c
|
|
Builder.defineMacro("__PRAGMA_REDEFINE_EXTNAME", "1");
|
|
|
|
// As sad as it is, enough software depends on the __VERSION__ for version
|
|
- // checks that it is necessary to report 4.2.1 (the base GCC version we claim
|
|
+ // checks that it is necessary to report 4.9.1 (the base GCC version we claim
|
|
// compatibility with) first.
|
|
- Builder.defineMacro("__VERSION__", "\"4.2.1 Compatible " +
|
|
+ Builder.defineMacro("__VERSION__", "\"4.9.1 Compatible " +
|
|
Twine(getClangFullCPPVersion()) + "\"");
|
|
|
|
// Initialize language-specific preprocessor defines.
|
|
--- llvm-3.5/tools/clang/test/Driver/immediate-options.c.gcc49~ 2014-08-22 22:54:39.000000000 +0200
|
|
+++ llvm-3.5/tools/clang/test/Driver/immediate-options.c 2014-08-25 22:24:57.690608619 +0200
|
|
@@ -7,7 +7,7 @@
|
|
// HELP-HIDDEN: driver-mode
|
|
|
|
// RUN: %clang -dumpversion | FileCheck %s -check-prefix=DUMPVERSION
|
|
-// DUMPVERSION: 4.2.1
|
|
+// DUMPVERSION: 4.9.1
|
|
|
|
// RUN: %clang -print-search-dirs | FileCheck %s -check-prefix=PRINT-SEARCH-DIRS
|
|
// PRINT-SEARCH-DIRS: programs: ={{.*}}
|
|
--- llvm-3.5/tools/clang/test/Preprocessor/init.c.gcc49~ 2014-08-25 22:24:57.691608607 +0200
|
|
+++ llvm-3.5/tools/clang/test/Preprocessor/init.c 2014-08-25 22:25:27.754232772 +0200
|
|
@@ -5851,7 +5851,7 @@
|
|
// SPARC:#define __UINT_LEAST8_MAX__ 255
|
|
// SPARC:#define __UINT_LEAST8_TYPE__ unsigned char
|
|
// SPARC:#define __USER_LABEL_PREFIX__ _
|
|
-// SPARC:#define __VERSION__ "4.2.1 Compatible
|
|
+// SPARC:#define __VERSION__ "4.9.1 Compatible
|
|
// SPARC:#define __WCHAR_MAX__ 2147483647
|
|
// SPARC:#define __WCHAR_TYPE__ int
|
|
// SPARC:#define __WCHAR_WIDTH__ 32
|