[PATCH] D28213: [Frontend] Correct values of ATOMIC_*_LOCK_FREE to match builtin
Michał Górny via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Feb 3 12:52:37 PST 2017
mgorny added a comment.
In https://reviews.llvm.org/D28213#665967, @dim wrote:
> I don't think FreeBSD has lock-free 64 bit atomic operations on 32-bit x86. IIRC we already had some trouble before with clang emitting libcalls to `__atomic_fetch_add_8` and friends, which then lead to linking errors.
>
> See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216745, where this is now occurring with boost.
Could you try to figure out what's the cause for that discrepancy? What's the value of `__atomic_always_lock_free(sizeof(long long), 0)` for gcc and clang?
Repository:
rL LLVM
https://reviews.llvm.org/D28213
More information about the cfe-commits
mailing list