http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51011
--- Comment #6 from Andrew Macleod <amacleod at redhat dot com> 2011-11-16 19:03:18 UTC --- Created attachment 25840 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25840 potential fix rth has finished the libgcc changes required for supplying __atomic mappings like __sync already has. This should (hopefully) resolve the issues except for the originally specified testcase atomic-noinline.c Please try a new run with a recent checkout and see what fails. I'm assuming that atomic-noinline.c will still fail. If so this patch should resolve the issue. With any luck at all, it won't cause any new issues, but the interaction between those __sync and libgcc supplied routines is very unclear to me since I dont know why the __sync routines didnt fail before. If there are still other failures, this patch may fix them as well. give it a try and let me know what happens. Andrew