Something like the attached patch should do it. I'm still building to see if it works though.
There's a couple of bigger problems though if we want to do it right:
* There's code in corelib/arch/armv6/qatomic*.c that may also being used
* qatomic_armv6.h includes code for RVCT which should be fixed by someone
* The code may not work on multi-processor systems like Panda due to the lack of DMB instructions
The better fix would be to replace everything with __sync_* primitives similar to qatomic_avr32.h and require GCC 4.4 or higher.
Something like the attached patch should do it. I'm still building to see if it works though.
There's a couple of bigger problems though if we want to do it right: arch/armv6/ qatomic* .c that may also being used
* There's code in corelib/
* qatomic_armv6.h includes code for RVCT which should be fixed by someone
* The code may not work on multi-processor systems like Panda due to the lack of DMB instructions
The better fix would be to replace everything with __sync_* primitives similar to qatomic_avr32.h and require GCC 4.4 or higher.
In progress...