http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52839
--- Comment #35 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-11-02 01:35:35 UTC --- I get the same "randomish" failure on MIPS64 (the Octeon 1 with 16 cores) with GCC 4.7. The patch listed below will not help me at all as the code is already using the __atomic_* functions. Was there another change to the libstdc++ code which fixes similar issue too?