CVS commit: [netbsd-9] src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common
"Martin Husemann" <[email protected]>
| Newsgroups | gmane.os.netbsd.devel.cvs |
|---|---|
| Message-ID | <[email protected]> |
Module Name: src
Committed By: martin
Date: Sat Jun 27 17:24:23 UTC 2026
Modified Files:
src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common [netbsd-9]:
sanitizer_mutex.h
Log Message:
Pull up following revision(s) (requested by riastradh in ticket #2016):
external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_mutex.h: revision 1.3
Fix StaticSpinMutex::CheckLocked() on sparc32.
The lock gets set with atomic_exchange() -> __sync_lock_test_and_set()
which sets the value to 255 instead of 1. Check for a taken lock
with "!= 0" instead of "== 1". This should work on all architectures.
Ok: Matthew Green
To generate a diff of this commit:
cvs rdiff -u -r1.1.1.3 -r1.1.1.3.6.1 \
src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_mutex.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.