Re: powerpc lack of memory_barrier

2011-11-17 Thread Richard Henderson
On 11/17/2011 04:50 AM, David Edelsohn wrote: > On Thu, Nov 17, 2011 at 6:07 AM, Alan Modra wrote: >> Lacking this pattern means the builtin __sync_synchronize() on powerpc >> is just an asm with a memory clobber (see builtins.c), which is hardly >> a "full memory barrier" as extend.texi says it s

Re: powerpc lack of memory_barrier

2011-11-17 Thread David Edelsohn
On Thu, Nov 17, 2011 at 6:07 AM, Alan Modra wrote: > Lacking this pattern means the builtin __sync_synchronize() on powerpc > is just an asm with a memory clobber (see builtins.c), which is hardly > a "full memory barrier" as extend.texi says it should be.  This patch > fixes multiple libgomp test

powerpc lack of memory_barrier

2011-11-17 Thread Alan Modra
Lacking this pattern means the builtin __sync_synchronize() on powerpc is just an asm with a memory clobber (see builtins.c), which is hardly a "full memory barrier" as extend.texi says it should be. This patch fixes multiple libgomp testsuite failures. Bootstrapped and regression tested powerpc-