[AArch64] Advertise that the __sync_*_compare_and_swap_1/2/4/8 builtins work

Fixes PR23428, where std::thread in libstdc++ would go haywire without
these defines.

llvm-svn: 236605
This commit is contained in:
Reid Kleckner 2015-05-06 15:31:46 +00:00
parent 1fe0d5ca59
commit d167d42888
1 changed files with 6 additions and 0 deletions

View File

@ -4926,6 +4926,12 @@ public:
if (Crypto)
Builder.defineMacro("__ARM_FEATURE_CRYPTO");
// All of the __sync_(bool|val)_compare_and_swap_(1|2|4|8) builtins work.
Builder.defineMacro("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_1");
Builder.defineMacro("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_2");
Builder.defineMacro("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4");
Builder.defineMacro("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_8");
}
void getTargetBuiltins(const Builtin::Info *&Records,