Re: [PATCH] Fix __atomic_compare_exchange library call and tests

2011-11-16 Thread Richard Henderson
On 11/16/2011 12:10 PM, Andrew MacLeod wrote: > > > * builtins.c (expand_builtin): Remove 4th parameter representing > weak/strong mode when __atomic_compare_exchange becomes a library call. > > testsuite > * gcc.dg/atomic-generic-aux.c (__atomic_compare_exchange): Fail

[PATCH] Fix __atomic_compare_exchange library call and tests

2011-11-16 Thread Andrew MacLeod
__atomic_compare_exchange has 6 parameters of which one is a boolean indicating whether its the weak or strong variation. The external library doesn't bother with the weak condition, so it only has 5 parameters. When generating the external call for the size specific __atomic_compare_exchange