This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Use lwsync in PowerPC sync_* builtins
David Edelsohn wrote:
> On Wed, Sep 3, 2008 at 6:53 PM, Anton Blanchard <anton@samba.org> wrote:
>> The only thing lwsync wont order is a store followed by a load. Since
>> the lwsync will always be paired with a store (the stwcx), we will order
>> all accesses before it and provide a release barrier.
>
> Anton,
>
> My one other concern is developers using the builtins for applications on
> embedded PowerPC processors. lwsync will not order accesses to device
> memory space, AFAICT.
Don't you need eieio+sync for that? GCC does not generate the eieio now.
Paolo