linux-atomic.c (__kernel_cmpxchg): Change argument 1 to volatile void *.
authorJohn David Anglin <danglin@gcc.gnu.org>
Sun, 17 Nov 2019 23:11:52 +0000 (23:11 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Sun, 17 Nov 2019 23:11:52 +0000 (23:11 +0000)
commit632b5e3da795a326196eab31ff4c22ed854716ed
treef056e7c362f2493c691784c10999ab4d7bee2930
parentb906729f81745faae62f2042185858bb48aa40b2
linux-atomic.c (__kernel_cmpxchg): Change argument 1 to volatile void *.

* config/pa/linux-atomic.c (__kernel_cmpxchg): Change argument 1 to
volatile void *.  Remove trap check.
(__kernel_cmpxchg2): Likewise.
(FETCH_AND_OP_2): Adjust operand types.
(OP_AND_FETCH_2): Likewise.
(FETCH_AND_OP_WORD): Likewise.
(OP_AND_FETCH_WORD): Likewise.
(COMPARE_AND_SWAP_2): Likewise.
(__sync_val_compare_and_swap_4): Likewise.
(__sync_bool_compare_and_swap_4): Likewise.
(SYNC_LOCK_TEST_AND_SET_2): Likewise.
(__sync_lock_test_and_set_4): Likewise.
(SYNC_LOCK_RELEASE_1): Likewise.  Use __kernel_cmpxchg2 for release.
(__sync_lock_release_4): Adjust operand types.  Use __kernel_cmpxchg
for release.
(__sync_lock_release_8): Remove.

From-SVN: r278377
libgcc/ChangeLog
libgcc/config/pa/linux-atomic.c