https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64991
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Status|UNCONFIRMED |RESOLVED --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- There is no way to do lock prefix to the SSE instructions so you need to do a compare and exchange loop as you need to make sure the value has been updated atomically. That is no other changes happened to that memory location after the load/addition happens.