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
This commit is contained in:
parent
2e197b24c5
commit
41c2c807b1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=354984
@ -190,6 +190,9 @@ void MipsTargetInfo::getTargetDefines(const LangOptions &Opts,
|
||||
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");
|
||||
|
Loading…
Reference in New Issue
Block a user