This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Fw: [PATCH 1/2] BZ#13743: PowerPC - Add a new header for platformspecific functions
- From: Richard Henderson <rth at twiddle dot net>
- To: munroesj at us dot ibm dot com
- Cc: Steven Munroe <munroesj at linux dot vnet dot ibm dot com>, David Edelsohn <dje dot gcc at gmail dot com>,Michael Meissner <meissner at linux dot vnet dot ibm dot com>, Michael R Meissner <mrmeissn at us dot ibm dot com>,Carlos O'Donell <carlos at systemhalted dot org>, Ulrich Drepper <drepper at gmail dot com>,"Joseph S. Myers" <joseph at codesourcery dot com>, libc-alpha at sourceware dot org, Roland McGrath <roland at hack dot frob dot com>,ryan dot arnold at gmail dot com, Thomas Schwinge <thomas at codesourcery dot com>, Tulio Magno Quites Machado Filho <tuliom at linux dot vnet dot ibm dot com>
- Date: Fri, 09 Mar 2012 14:46:11 -0800
- Subject: Re: Fw: [PATCH 1/2] BZ#13743: PowerPC - Add a new header for platformspecific functions
- References: <OF25143771.5D6AAC35-ON852579BB.006EE26B-852579BB.006EE6D2@us.ibm.com> <20120308202224.GA12510@ibm-tiger.the-meissners.org> <1331247636.4861.177.camel@spokane1.rchland.ibm.com> <CAGWvnyn0YRKz-HFD_Yxkr2eDDgxGFc4Vq+31RDJBC+OhMDuRkw@mail.gmail.com> <1331333211.4861.194.camel@spokane1.rchland.ibm.com>
On 03/09/12 14:46, Steven Munroe wrote:
> How do you feel about the data stream control register and getting a
> more complete set (than __sync_synchronize()) of memory barriers? *GCC
> or GLIBC)?
That's __atomic_thread_fence (memory_model) now.
Yes, we don't currently have a way to explicitly say "read barrier"
or "write barrier" atm, but those could (1) be introduced as new
memory models or (2) be inferred via optimization from the surrounding
atomic builtins.
r~