Re: Use atomics in remaining libgomp/config/linux sources

2011-12-01 Thread Richard Henderson
On 12/01/2011 01:44 AM, Alan Modra wrote: > * config/linux/affinity.c: Use atomic rather than sync builtin. > * config/linux/lock.c: Likewise. > * config/linux/ptrlock.h: Likewise. > * config/linux/ptrlock.c: Likewise. > * config/linux/ptrlock.h (gomp_ptrlock_set): Alw

Use atomics in remaining libgomp/config/linux sources

2011-12-01 Thread Alan Modra
This converts the remaining files in libgomp/config/linux/ to use atomics. gomp_init_thread_affinity fairly obviously needs no barriers; I wasn't so sure about ptrlock, so tried without the acquire/release barriers and found a number of the loop tests failed. So it seems the usual lock barriers a