On Tue, 4 Aug 2020 23:22:14 +0100 Stuart Henderson <s...@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.