[Patch] Make atomics work on FreeBSD+arm
Ed Schouten
ed at 80386.nl
Sun May 26 09:14:00 PDT 2013
2013/5/26 Ed Schouten <ed at 80386.nl>:
> On FreeBSD, we can simply set MaxAtomicInlineWidth unconditionally, as
> FreeBSD/arm always provides these __sync_* intrinsics:
>
> http://svnweb.freebsd.org/base/head/lib/libcompiler_rt/Makefile?view=markup#l160
Hmm... It seems this patch needs some more polishing. The point is
that we only provide the __sync_* intrinsics for 32-bits.
What puzzles me a bit: why does Clang use these __sync_* intrinsics
for C11 atomics? Isn't it supposed to use the __atomic_* ones, that
are part of compiler-rt?
--
Ed Schouten <ed at 80386.nl>
More information about the cfe-commits
mailing list