Commit 03cb4097 by John David Anglin

pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1...

	* config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
	__GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
	and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
	(HAVE_sync_compare_and_swapqi): Define.
	(HAVE_sync_compare_and_swaphi): Likewise.
	(HAVE_sync_compare_and_swapsi): Likewise.

From-SVN: r212770
parent a4137090
2014-07-17 John David Anglin <danglin@gcc.gnu.org>
* config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
__GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
(HAVE_sync_compare_and_swapqi): Define.
(HAVE_sync_compare_and_swaphi): Likewise.
(HAVE_sync_compare_and_swapsi): Likewise.
2014-07-17 Richard Sandiford <rdsandiford@googlemail.com> 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
* config/mips/p5600.md: Add missing cpu tests. * config/mips/p5600.md: Add missing cpu tests.
......
...@@ -22,9 +22,6 @@ along with GCC; see the file COPYING3. If not see ...@@ -22,9 +22,6 @@ along with GCC; see the file COPYING3. If not see
#define TARGET_OS_CPP_BUILTINS() \ #define TARGET_OS_CPP_BUILTINS() \
do \ do \
{ \ { \
builtin_define ("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_1"); \
builtin_define ("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_2"); \
builtin_define ("__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4"); \
GNU_USER_TARGET_OS_CPP_BUILTINS(); \ GNU_USER_TARGET_OS_CPP_BUILTINS(); \
builtin_assert ("machine=bigendian"); \ builtin_assert ("machine=bigendian"); \
} \ } \
...@@ -133,3 +130,13 @@ along with GCC; see the file COPYING3. If not see ...@@ -133,3 +130,13 @@ along with GCC; see the file COPYING3. If not see
#undef TARGET_SYNC_LIBCALL #undef TARGET_SYNC_LIBCALL
#define TARGET_SYNC_LIBCALL 1 #define TARGET_SYNC_LIBCALL 1
/* 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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment