Re: [PATCH 2/4] Avoid non constant memory model uses in libatomic

2013-03-19 Thread Richard Henderson
On 03/16/2013 06:29 AM, Andi Kleen wrote: > 2013-03-15 Andi Kleen > > * gcas.c: (EXACT_INLINE): Use __ATOMIC_SEQ_CST. > * gexch.c: (EXACT_INLINE): Use __ATOMIC_SEQ_CST. > * gload.c: (EXACT_INLINE): Use __ATOMIC_SEQ_CST. > * gstore.c: (EXACT_INLINE): Use __ATOMIC_SEQ_CST.

[PATCH 2/4] Avoid non constant memory model uses in libatomic

2013-03-16 Thread Andi Kleen
From: Andi Kleen x86 ends up using non constant memory models for some of the libatomic functions. These all end up as __ATOMIC_SEQ_CST. Just use this directly. This avoids a new warning for non constant memory models, which broke the bootstrap with -Werror Passed bootstrap and test on x86_64-li