https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92977
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org --- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 47519 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47519&action=edit gcc10-pr92977.patch Untested fix. For atomic, in some cases it might work to actually insert the BLOCK around the whole atomic, but it would be quite non-trivial with the way it works now.