C-SKY: Define HAVE_sync_compare_and_swap*.
The SYNC operations are implemented as library functions, not NSN patterns. As a result, the HAVE defines for the patterns are not defined. We need to define them to generate the corresponding __GCC_HAVE_SYNC_COMPARE_AND_SWAP_* and __GCC_ATOMIC_*_LOCK_FREE defines. gcc/ * config/csky/csky-linux-elf.h (HAVE_sync_compare_and_swapqi): Defined. (HAVE_sync_compare_and_swaphi): Likewise. (HAVE_sync_compare_and_swapsi): Likewise.
This commit is contained in:
parent
c94424b0ed
commit
f69a1aee15
1 changed files with 10 additions and 0 deletions
|
@ -133,3 +133,13 @@
|
|||
#ifdef IN_LIBGCC2
|
||||
extern int cacheflush (void *__addr, const int __nbytes, const int __op);
|
||||
#endif
|
||||
|
||||
/* The SYNC operations are implemented as library functions, not
|
||||
INSN patterns. As a result, the HAVE defines for the patterns are
|
||||
not defined. We need to define them to generate the corresponding
|
||||
__GCC_HAVE_SYNC_COMPARE_AND_SWAP_* and __GCC_ATOMIC_*_LOCK_FREE
|
||||
defines. */
|
||||
|
||||
#define HAVE_sync_compare_and_swapqi 1
|
||||
#define HAVE_sync_compare_and_swaphi 1
|
||||
#define HAVE_sync_compare_and_swapsi 1
|
||||
|
|
Loading…
Add table
Reference in a new issue