Tuesday, August 04, 2020

Re: i386/LLVM 10

On Tue, 4 Aug 2020 23:22:14 +0100
Stuart Henderson <stu@spacehopper.org> wrote:

> ld.lld: error: undefined symbol: __atomic_is_lock_free

kettenis wrote an __atomic_is_lock_free for macppc when it switched to
base-clang: /usr/src/lib/libcompiler_rt/ppc/atomic_lock_free.c

Do we now need to write __atomic_is_lock_free for i386?

This commit might be the cause:
[X86] Correct the value of MaxAtomicInlineWidth for pre-586 cpus
https://github.com/llvm/llvm-project/commit/7339e61
https://reviews.llvm.org/D59566

clang might call __atomic_is_lock_free to check whether the cpu can
cmpxchg8b.

No comments:

Post a Comment