https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111870
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Status|WAITING |RESOLVED --- Comment #10 from Andrew Pinski <pinskia at gcc dot gnu.org> --- There is no atomicity issue here. If we need the old (or new) value, we use a compare-and-exchange loop to get the old value. If we don't need it, we use an atomic or.