https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49244
Martin Sebor <msebor at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |missed-optimization Status|UNCONFIRMED |NEW Last reconfirmed| |2016-02-03 CC| |msebor at gcc dot gnu.org Ever confirmed|0 |1 Known to fail| |4.9.3, 5.3.0, 6.0 --- Comment #4 from Martin Sebor <msebor at gcc dot gnu.org> --- Confirmed, though I have no idea about the feasibility of the request. It might worth to add it to the list of Atomic Optimization Ideas on the Wiki: https://gcc.gnu.org/wiki/Atomic/GCCMM/Optimizations