forked from OSchip/llvm-project
[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:
parent
1fe0d5ca59
commit
d167d42888
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue