I’ve resurrected an app that was fine in iOS, and now, it compiles and links, but crashes with EXC_BADACCESS at the first use on a set or get on an Atomic <uint64_t>.
The debugger ends up here:
return sizeof (Type) == 4 ? castFrom32Bit ((int32) __sync_add_and_fetch ((volatile int32*) &value, 0))
: castFrom64Bit ((int64) __sync_add_and_fetch ((volatile int64*) &value, 0));
:oops: I am not on the tip - it would risk the Mac and Linux versions I’m trying to get out to change right now.
iOS SDK 4.3, targetting 4.2, ARMv7 optimized targets. Same issue on iPhone 4 and iPad 1.