summaryrefslogtreecommitdiff
path: root/libgo
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2012-11-17 00:52:22 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2012-11-17 00:52:22 +0000
commit909d7f27c09047a93604be8e7b70e813df5bc66b (patch)
tree43693954d0556bd7948a41db60e59211912b258a /libgo
parent714cf4f90ac7fe84fe7ff44bfcb04146b5a0832e (diff)
downloadgcc-909d7f27c09047a93604be8e7b70e813df5bc66b.tar.gz
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
Diffstat (limited to 'libgo')
-rw-r--r--libgo/runtime/runtime.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgo/runtime/runtime.h b/libgo/runtime/runtime.h
index 6edeae5f9d9..fb89a829ad6 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)