search for: _libcpp_compiler_gcc

Displaying 1 result from an estimated 1 matches for "_libcpp_compiler_gcc".

2019 Dec 29
2
__c11_atomic builtins' input requirements
...c11 functions require? The following code in libcxx/include/config implies that the c11 atomic builtins should be substituted for gcc atomic builtins if present: #if __has_feature(cxx_atomic) || __has_extension(c_atomic) || __has_keyword(_Atomic) # define _LIBCPP_HAS_C_ATOMIC_IMP #elif defined(_LIBCPP_COMPILER_GCC) # define _LIBCPP_HAS_GCC_ATOMIC_IMP #endif To implement atomic_ref, it might be cleaner to use the gcc builtins. By doing so, we avoid depending on the internals of the c11 atomic builtins. The required alignment of referenced variables would always be the first power of 2 >= max(type_size,...