On Thu, Nov 12, 2026 at 10:05:53AM +0100, Jakub Jelinek wrote:
> On Thu, Nov 12, 2026 at 09:56:55AM +0100, Stefan Schulze Frielinghaus wrote:
> > I'm seeing now:
> >
> > libsanitizer/tsan/.libs/tsan_interface_atomic.o: U
> > __sync_fetch_and_and_16
>
> In that case it is probably the
> https://github.com/llvm/llvm-project/commit/c96a176dd15690ed8181c6764b26d0303008a40f
> change. Maybe clang doesn't define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_16 on
> s390x and GCC does?
Ah, seems GCC does define it and has the optabs, but they FAIL if the
address doesn't have 16-byte alignment.
So maybe for tsan purposes #undef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_16 on
s390x given that __int128 doesn't have 128-bit alignment and the library
uses it carelessly?
Jakub