http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54754
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-09-29 20:37:59 UTC --- Created attachment 28301 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28301 Use built-in atomics on non-x86_64 targets. This patch uses __atomic_always_lock_free to check if the __atomic_* built-ins can be used, which allows them to be used on more platforms than the current preprocessor checks allow.