Re: [PATCH] Fix atomic load for unsupported data sizes

2012-02-08 Thread Richard Guenther
On Wed, Feb 8, 2012 at 4:16 PM, Andrew MacLeod wrote: > When investigating an issue on arm, I discovered a bug that needs fixing. > > If there is no atomic_load pattern  for data which is larger than the native > word size, we try to issue a compare_and_swap loop.  Problem is there is no > check t

[PATCH] Fix atomic load for unsupported data sizes

2012-02-08 Thread Andrew MacLeod
When investigating an issue on arm, I discovered a bug that needs fixing. If there is no atomic_load pattern for data which is larger than the native word size, we try to issue a compare_and_swap loop. Problem is there is no check to see if it succeeded or failed. If the compare-swap loop i