linux-atomic.c (__kernel_cmpxchg2): New.
authorGuy Martin <gmsoft@tuxicoman.be>
Sat, 22 Nov 2014 00:18:49 +0000 (01:18 +0100)
committerJohn David Anglin <danglin@gcc.gnu.org>
Sat, 22 Nov 2014 00:18:49 +0000 (00:18 +0000)
commit0cd7c67283bcf3b0a443be9b6cdeaed7f6c1b8f3
treed24ccb54dd1a62bd6f385f542d93a493d00a4953
parent16c31bcf0256bf544256951fed13c9173b21a4de
linux-atomic.c (__kernel_cmpxchg2): New.

* config/pa/linux-atomic.c (__kernel_cmpxchg2): New.
(FETCH_AND_OP_2): New.  Use for subword and double word operations.
(OP_AND_FETCH_2): Likewise.
(COMPARE_AND_SWAP_2): Likewise.
(SYNC_LOCK_TEST_AND_SET_2): Likewise.
(SYNC_LOCK_RELEASE_2): Likewise.
(SUBWORD_SYNC_OP): Remove.
(SUBWORD_VAL_CAS): Likewise.
(SUBWORD_BOOL_CAS): Likewise.
(FETCH_AND_OP_WORD): Update.
Consistently use signed types.

Co-Authored-By: John David Anglin <danglin@gcc.gnu.org>
From-SVN: r217956
libgcc/ChangeLog
libgcc/config/pa/linux-atomic.c