[Bug 274927] Toolchain fails on the __sync_val_compare_and_swap function without -march=native (port biology/seqwish)
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 05 Nov 2023 19:53:17 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274927 Mark Millard <marklmi26-fbsd@yahoo.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |marklmi26-fbsd@yahoo.com --- Comment #1 from Mark Millard <marklmi26-fbsd@yahoo.com> --- (In reply to Yuri Victorovich from comment #0) Hmm. Which toolchain does it use? Also, which platform(s) have the issue? When I went looking around, I ran into: https://llvm.org/doxygen/Atomic_8cpp_source.html that showed: . . . #if defined(__GNUC__) || (defined(__IBMCPP__) && __IBMCPP__ >= 1210) #define GNU_ATOMICS #endif . . . #if LLVM_HAS_ATOMICS == 0 sys::cas_flag result = *ptr; if (result == old_value) *ptr = new_value; return result; #elif defined(GNU_ATOMICS) return __sync_val_compare_and_swap(ptr, old_value, new_value); #elif defined(_MSC_VER) return InterlockedCompareExchange(ptr, new_value, old_value); #else # error No compare-and-swap implementation for your platform! #endif . . . FreeBSD tends to not have complete coverage of what comes from libraries in gcc/g++'s code generation on some platforms, such as aarch64. -- You are receiving this mail because: You are the assignee for the bug.