From: Ian Lance Taylor Date: Sat, 17 Nov 2012 00:52:22 +0000 (+0000) Subject: runtime: Fix use of __atomic_compare_exchange_n: not weak, consistent. X-Git-Tag: releases/gcc-4.8.0~1955 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=95d89457e2f8878a33b5f20009c170d898b8e5b1;p=thirdparty%2Fgcc.git runtime: Fix use of __atomic_compare_exchange_n: not weak, consistent. From-SVN: r193581 --- diff --git a/libgo/runtime/runtime.h b/libgo/runtime/runtime.h index 6edeae5f9d9d..fb89a829ad65 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)