https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59190
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2016-08-14 Ever confirmed|0 |1 --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Confirmed. There is another bug which was just filed a few weeks ago about this same thing. Basically there needs to be a optimizing __atomic_* pass.