gcc/libatomic/config
Jakub Jelinek 7ac1a99ccf 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.

(cherry picked from commit 34fe8e9000)
2025-04-23 10:13:13 +02:00
..
aarch64 Update copyright years. 2023-01-16 11:52:17 +01:00
arm Update copyright years. 2023-01-16 11:52:17 +01:00
ia64
linux libatomic: Fix SEQ_CST 128-bit atomic load [PR108891] 2023-03-24 16:51:26 +00:00
mingw libatomic: Fix up libat_{,un}lock_n for mingw [PR119796] 2025-04-23 10:13:13 +02:00
nvptx Update copyright years. 2023-01-16 11:52:17 +01:00
posix libatomic: Fix up libat_{,un}lock_n [PR119796] 2025-04-23 10:12:59 +02:00
powerpc
rtems Update copyright years. 2023-01-16 11:52:17 +01:00
s390 s390: libatomic: Fix 16 byte atomic {cas,load,store} 2023-03-03 17:09:46 +01:00
x86 Update copyright years. 2023-01-16 11:52:17 +01:00
t-aix aix: remove libgomp and libatomic archives before creating FAT archives 2020-10-11 17:30:24 -04:00