http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52941
--- Comment #6 from Kazumoto Kojima <kkojima at gcc dot gnu.org> 2012-04-16 22:37:31 UTC --- (In reply to comment #5) The patch looks just fine. I don't mind whether those atomics are fully optimized or not ATM. Programs having atomics in the minor loop are pathological in the first place, I think.