This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: sync operations: where's the barrier?
- From: Richard Henderson <rth at redhat dot com>
- To: Geoffrey Keating <geoffk at apple dot com>
- Cc: GCC Mailing List <gcc at gcc dot gnu dot org>
- Date: Mon, 18 Apr 2005 22:01:39 -0700
- Subject: Re: sync operations: where's the barrier?
- References: <fada5337d9b473e4a771b7fd9d748053@apple.com>
On Mon, Apr 18, 2005 at 02:48:27PM -0700, Geoffrey Keating wrote:
> The documentation for the atomic operation patterns says things like:
>
> >This pattern must issue any memory barrier instructions such that the
> >pattern as a whole acts as a full barrier.
>
> Should the barrier happen before the operation, after the operation,
> are there two barriers, or is it undefined?
Two barriers.
r~