https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274927

Mark Millard <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #1 from Mark Millard <[email protected]> ---
(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.

Reply via email to