HomeFreeBSD

stdatomic: Only use clang atomics if __clang__ is defined

Description

stdatomic: Only use clang atomics if clang is defined

GCC 14 defines has_extension(c_atomic) but does not support
c11_atomic_*, so require clang for the CLANG_ATOMICS case.

Reviewed by: imp, emaste
Differential Revision: https://reviews.freebsd.org/D46001

(cherry picked from commit 680f40f38343de118d5b973129683804e496faaf)

Details

Provenance
jhbAuthored on Jul 19 2024, 5:01 PM
Reviewer
imp
Differential Revision
D46001: stdatomic: Only use clang atomics if __clang__ is defined
Parents
rGb4bbdf56a700: splash(4): Subject/verb agreement
Branches
Unknown
Tags
Unknown