summaryrefslogtreecommitdiff
path: root/libgo/config.h.in
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2019-02-01 21:55:38 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2019-02-01 21:55:38 +0000
commitb52a3881f04799d410f7ec70d022179c8d734459 (patch)
treeeace57a9fb5df73173371815f0a0e1a5913a77a8 /libgo/config.h.in
parenta53a893b4fe04ec966a4ec178ee8f394426a5dad (diff)
downloadgcc-b52a3881f04799d410f7ec70d022179c8d734459.tar.gz
runtime, sync: use __atomic intrinsics instead of __sync
GCC has supported the __atomic intrinsics since 4.7. They are better than the __sync intrinsics in that they specify a memory model and, more importantly for our purposes, they are reliably implemented either in the compiler or in libatomic. Fixes https://gcc.gnu.org/PR52084 Reviewed-on: https://go-review.googlesource.com/c/160820 From-SVN: r268458
Diffstat (limited to 'libgo/config.h.in')
-rw-r--r--libgo/config.h.in16
1 files changed, 0 insertions, 16 deletions
diff --git a/libgo/config.h.in b/libgo/config.h.in
index d47969dc8f1..bbb2516bbbf 100644
--- a/libgo/config.h.in
+++ b/libgo/config.h.in
@@ -246,22 +246,6 @@
/* Define to 1 if <math.h> defines struct exception */
#undef HAVE_STRUCT_EXCEPTION
-/* Define to 1 if the compiler provides the __sync_add_and_fetch function for
- uint64 */
-#undef HAVE_SYNC_ADD_AND_FETCH_8
-
-/* Define to 1 if the compiler provides the __sync_bool_compare_and_swap
- function for uint32 */
-#undef HAVE_SYNC_BOOL_COMPARE_AND_SWAP_4
-
-/* Define to 1 if the compiler provides the __sync_bool_compare_and_swap
- function for uint64 */
-#undef HAVE_SYNC_BOOL_COMPARE_AND_SWAP_8
-
-/* Define to 1 if the compiler provides the __sync_fetch_and_add function for
- uint32 */
-#undef HAVE_SYNC_FETCH_AND_ADD_4
-
/* Define to 1 if you have the `sync_file_range' function. */
#undef HAVE_SYNC_FILE_RANGE