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
@ -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…
x
Reference in New Issue
Block a user