HomeFreeBSD

Unbreak <stdatomic.h> on ARM + Clang.

Description

Unbreak <stdatomic.h> on ARM + Clang.

Clang only supports atomic operations for ARMv6. For non-ARMv6, we still
need to emit these functions.

Clang's prototype for these functions slightly differs, as it is truly
based on GCC's documentation. It requires the use of signed types, but
also requires varargs. Still, we are not allowed to simply implement
this function directly. Cleverly work around this by implementing it
under a different name and using __strong_reference().

Details

Provenance
edAuthored on Apr 27 2013, 4:56 AM
Parents
rGec8025b5e25e: Add a comma to satisfy Igor.
Branches
Unknown
Tags
Unknown

Event Timeline