diff options
| author | Wilco Dijkstra <Wilco.Dijkstra@arm.com> | 2025-09-11 08:26:33 -0300 |
|---|---|---|
| committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2025-09-11 14:44:03 -0300 |
| commit | b56b58d91b33a9a96aef7c0c2ff9b4011a86804f (patch) | |
| tree | 598eba1ff9e6996e9bab466d0fe2704ec5df34bd /sysdeps/microblaze/atomic-machine.h | |
| parent | 2efaa6267af06bdaee51e697b12f010b8eb39bb0 (diff) | |
nptl: Remove ATOMIC_EXCHANGE_USES_CAS usageazanella/atomic-cleanup
The only usage was for pthread_spin_lock, introduced by 12d2dd706099aa4,
as a way to optimize the code for certain architectures. Now that atomic
builtins are used by default, let the compiler use the best code sequence
for the atomic exchange.
Co-authored-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'sysdeps/microblaze/atomic-machine.h')
| -rw-r--r-- | sysdeps/microblaze/atomic-machine.h | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/sysdeps/microblaze/atomic-machine.h b/sysdeps/microblaze/atomic-machine.h deleted file mode 100644 index 8c04235b69..0000000000 --- a/sysdeps/microblaze/atomic-machine.h +++ /dev/null @@ -1,22 +0,0 @@ -/* Copyright (C) 2003-2025 Free Software Foundation, Inc. - - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library. If not, see - <https://www.gnu.org/licenses/>. */ - -#include <sysdep.h> - -/* XXX Is this actually correct? */ -#define ATOMIC_EXCHANGE_USES_CAS 1 |
