From 909d7f27c09047a93604be8e7b70e813df5bc66b Mon Sep 17 00:00:00 2001 From: ian Date: Sat, 17 Nov 2012 00:52:22 +0000 Subject: [PATCH] runtime: Fix use of __atomic_compare_exchange_n: not weak, consistent. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193581 138bc75d-0d04-0410-961f-82ee72b054a4 --- libgo/runtime/runtime.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libgo/runtime/runtime.h b/libgo/runtime/runtime.h index 6edeae5..fb89a82 100644 --- a/libgo/runtime/runtime.h +++ b/libgo/runtime/runtime.h @@ -518,7 +518,7 @@ MCache* runtime_allocmcache(void); void free(void *v); #define runtime_cas(pval, old, new) __sync_bool_compare_and_swap (pval, old, new) #define runtime_casp(pval, old, new) __sync_bool_compare_and_swap (pval, old, new) -#define runtime_cas64(pval, pold, new) __atomic_compare_exchange_n (pval, pold, new, 1, __ATOMIC_SEQ_CST, __ATOMIC_RELAXED) +#define runtime_cas64(pval, pold, new) __atomic_compare_exchange_n (pval, pold, new, 0, __ATOMIC_SEQ_CST, __ATOMIC_SEQ_CST) #define runtime_xadd(p, v) __sync_add_and_fetch (p, v) #define runtime_xadd64(p, v) __sync_add_and_fetch (p, v) #define runtime_xchg(p, v) __atomic_exchange_n (p, v, __ATOMIC_SEQ_CST) -- 2.7.4