]> git.feebdaed.xyz Git - 0xmirror/glibc.git/commit
atomic: Reinstate HAVE_64B_ATOMICS configure check
authorWilco Dijkstra <wilco.dijkstra@arm.com>
Mon, 15 Dec 2025 13:56:14 +0000 (13:56 +0000)
committerWilco Dijkstra <wilco.dijkstra@arm.com>
Wed, 17 Dec 2025 22:57:00 +0000 (22:57 +0000)
commit9da0585852e5599ad6e849ccdf2f6f9b04038a3c
tree4c7084532cdb188ee8297f8e5c83d3eb56a90b3c
parent1c588a2187a4f348ec155a1441784b51891bb667
atomic: Reinstate HAVE_64B_ATOMICS configure check

Reinstate HAVE_64B_ATOMICS configure check that was reverted by commit
7fec8a5de6826ef9ae440238d698f0fe5a5fb372 due to BZ #33632.  This was
fixed by 3dd2cbfa35e0e6e0345633079bd5a83bb822c2d8 by only allowing
64-bit atomics on sem_t if its type is 8-byte aligned.  Rebase and add
in cleanups in include/atomic.h that were omitted.

Fix an issue with sparcv8-linux-gnu-leon3 forcing -mcpu=v8 for rtld.c which
overrules -mcpu=leon3 and causes __atomic_always_lock_free (4, 0) to
incorrectly return 0 and trigger asserts in atomics.  Remove this as it
seems to be a workaround for an issue in 1997.

Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16 files changed:
config.h.in
configure
configure.ac
include/atomic.h
include/atomic_wide_counter.h
misc/atomic_wide_counter.c
nptl/pthread_cond_common.c
stdlib/setenv.h
sysdeps/alpha/atomic-machine.h
sysdeps/generic/atomic-machine.h
sysdeps/generic/atomic-sem_t.h
sysdeps/nptl/rseq-access.h
sysdeps/riscv/atomic-machine.h
sysdeps/sparc/atomic-machine.h
sysdeps/unix/sysv/linux/sparc/sparc32/Makefile
sysdeps/x86/atomic-machine.h