[gccsdk] Recently added atomic functions hang on pre-ARMv6 machines

Lee Noar lee.noar at sky.com
Mon May 11 09:02:39 PDT 2020


On 11/05/2020 15:41, Cameron Cawley wrote:
> Hi all
> 
> Starting with commit r7252, GCCSDK now has more complete support for 
> atomic functions. This is enough to allow SDL2 to build with GCC atomics 
> instead of it's own implementation. However, this does not work on 
> pre-ARMv6 machines due to the use of LDREX and STREX instructions. Is it 
> possible for someone to take a look at this?

Ok, it looks like I failed to provide a non ARMv7 version of __cmpxchg
in Unixlib. I'll see if I can come up with a SWP version.

Lee.



More information about the gcc mailing list