gcc/libatomic
Jakub Jelinek 34fe8e9000 libatomic: Fix up libat_{,un}lock_n for mingw [PR119796]
Here is just a port of the previously posted patch to mingw which
clearly has the same problems.

2025-04-16  Jakub Jelinek  <jakub@redhat.com>

	PR libgcc/101075
	PR libgcc/119796
	* config/mingw/lock.c (libat_lock_n, libat_unlock_n): Start with
	computing how many locks will be needed and take into account
	((uintptr_t)ptr % WATCH_SIZE).  If some locks from the end of the
	locks array and others from the start of it will be needed, first
	lock the ones from the start followed by ones from the end.
2025-04-16 17:22:49 +02:00
..
config libatomic: Fix up libat_{,un}lock_n for mingw [PR119796] 2025-04-16 17:22:49 +02:00
testsuite Update copyright years. 2025-01-02 11:59:57 +01:00
.gitignore
acinclude.m4 Libatomic: AArch64: Convert all lse128 assembly to .insn directives 2024-06-12 10:23:38 +01:00
aclocal.m4
auto-config.h.in Libatomic: AArch64: Convert all lse128 assembly to .insn directives 2024-06-12 10:23:38 +01:00
cas_n.c Update copyright years. 2025-01-02 11:59:57 +01:00
ChangeLog Daily bump. 2025-01-11 00:19:49 +00:00
configure Revert "PR81358: Enable automatic linking of libatomic." 2024-12-18 22:03:38 +05:30
configure.ac Update copyright years. 2025-01-02 11:59:57 +01:00
configure.tgt Update copyright years. 2025-01-02 11:59:57 +01:00
exch_n.c Update copyright years. 2025-01-02 11:59:57 +01:00
fadd_n.c Update copyright years. 2025-01-02 11:59:57 +01:00
fand_n.c Libatomic: Define per-file identifier macros 2024-06-12 10:23:38 +01:00
fence.c Update copyright years. 2025-01-02 11:59:57 +01:00
fenv.c Update copyright years. 2025-01-02 11:59:57 +01:00
fior_n.c Libatomic: Define per-file identifier macros 2024-06-12 10:23:38 +01:00
flag.c Update copyright years. 2025-01-02 11:59:57 +01:00
fnand_n.c Libatomic: Define per-file identifier macros 2024-06-12 10:23:38 +01:00
fop_n.c Update copyright years. 2025-01-02 11:59:57 +01:00
fsub_n.c Libatomic: Define per-file identifier macros 2024-06-12 10:23:38 +01:00
fxor_n.c Libatomic: Define per-file identifier macros 2024-06-12 10:23:38 +01:00
gcas.c Update copyright years. 2025-01-02 11:59:57 +01:00
gexch.c Update copyright years. 2025-01-02 11:59:57 +01:00
glfree.c Update copyright years. 2025-01-02 11:59:57 +01:00
gload.c Update copyright years. 2025-01-02 11:59:57 +01:00
gstore.c Update copyright years. 2025-01-02 11:59:57 +01:00
host-config.h Update copyright years. 2025-01-02 11:59:57 +01:00
init.c
libatomic.map
libatomic_i.h Update copyright years. 2025-01-02 11:59:57 +01:00
load_n.c Update copyright years. 2025-01-02 11:59:57 +01:00
Makefile.am Update copyright years. 2025-01-02 11:59:57 +01:00
Makefile.in Revert "PR81358: Enable automatic linking of libatomic." 2024-12-18 22:03:38 +05:30
store_n.c Update copyright years. 2025-01-02 11:59:57 +01:00
tas_n.c Update copyright years. 2025-01-02 11:59:57 +01:00