On 11/27/2011 02:57 PM, Alan Modra wrote: > This is the mutex part. Depends on > http://gcc.gnu.org/ml/gcc-patches/2011-11/msg02454.html for MEMMODEL_* > values. > > * config/linux/mutex.h: Use atomic rather than sync builtins. > * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state. > * config/linux/omp-lock.h: Comment fix. > * config/linux/arm/mutex.h: Delete. > * config/linux/powerpc/mutex.h: Delete. > * config/linux/ia64/mutex.h: Delete. > * config/linux/mips/mutex.h: Delete.
Looks good modulo _4/_n and using the success return of __atomic_compare_exchange. r~