svn commit: r354984 - head/contrib/llvm/tools/clang/lib/Basic/Targets
Dimitry Andric
dim at FreeBSD.org
Thu Nov 21 20:35:54 UTC 2019
Author: dim
Date: Thu Nov 21 20:35:53 2019
New Revision: 354984
URL: https://svnweb.freebsd.org/changeset/base/354984
Log:
Merge commit 0d14656b9 from llvm git (by Simon Atanasyan):
[mips] Set __OCTEON__ macros
This is one of the upstream changes needed for adding support for the
OCTEON+ CPU type, so that we can test Clang builds using the most
commonly available FreeBSD/mips64 reference platform, the Edge Router
Lite.
Requested by: kevans
MFC after: 1 month
X-MFC-With: r353358
Modified:
head/contrib/llvm/tools/clang/lib/Basic/Targets/Mips.cpp
Modified: head/contrib/llvm/tools/clang/lib/Basic/Targets/Mips.cpp
==============================================================================
--- head/contrib/llvm/tools/clang/lib/Basic/Targets/Mips.cpp Thu Nov 21 20:32:34 2019 (r354983)
+++ head/contrib/llvm/tools/clang/lib/Basic/Targets/Mips.cpp Thu Nov 21 20:35:53 2019 (r354984)
@@ -190,6 +190,9 @@ void MipsTargetInfo::getTargetDefines(const LangOption
Builder.defineMacro("_MIPS_ARCH", "\"" + CPU + "\"");
Builder.defineMacro("_MIPS_ARCH_" + StringRef(CPU).upper());
+ if (StringRef(CPU).startswith("octeon"))
+ Builder.defineMacro("__OCTEON__");
+
// These shouldn't be defined for MIPS-I but there's no need to check
// for that since MIPS-I isn't supported.
Builder.defineMacro("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_1");
More information about the svn-src-all
mailing list