Improve atomic store implementation on hppa-linux.
commitea8b5640551ee7cbecf5c3ce30f0268963de3039
authorJohn David Anglin <danglin@gcc.gnu.org>
Mon, 27 Dec 2021 17:56:19 +0000 (27 17:56 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Mon, 27 Dec 2021 17:56:19 +0000 (27 17:56 +0000)
treea74fe47f5f105b6c0688cc5d06b81fad74a2e696
parent916ec36d0a3ef3fe44c1657746922a5f18b60326
Improve atomic store implementation on hppa-linux.

2021-12-27  John David Anglin  <danglin@gcc.gnu.org>

gcc/ChangeLog:

* config/pa/pa-protos.h: Delete
pa_maybe_emit_compare_and_swap_exchange_loop() declaration.
* config/pa/pa.c (pa_expand_compare_and_swap_loop): Delete.
(pa_maybe_emit_compare_and_swap_exchange_loop): Delete.
* config/pa/pa.md (atomic_storeq): Use __sync_lock_test_and_set
instead of pa_maybe_emit_compare_and_swap_exchange_loop.
(atomic_storehi, atomic_storesi, atomic_storedi): Likewise.
gcc/config/pa/pa-protos.h
gcc/config/pa/pa.c
gcc/config/pa/pa.md