Index: lib/Frontend/InitPreprocessor.cpp =================================================================== --- lib/Frontend/InitPreprocessor.cpp +++ lib/Frontend/InitPreprocessor.cpp @@ -587,12 +587,12 @@ "\"" CLANG_VERSION_STRING " " + getClangFullRepositoryVersion() + "\""); 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 8.2, but only if we're // not compiling for MSVC compatibility Builder.defineMacro("__GNUC_MINOR__", "2"); - Builder.defineMacro("__GNUC_PATCHLEVEL__", "1"); - Builder.defineMacro("__GNUC__", "4"); - Builder.defineMacro("__GXX_ABI_VERSION", "1002"); + Builder.defineMacro("__GNUC_PATCHLEVEL__", "0"); + Builder.defineMacro("__GNUC__", "8"); + Builder.defineMacro("__GXX_ABI_VERSION", "1013"); } // Define macros for the C11 / C++11 memory orderings