https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84721
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 43574 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43574&action=edit gcc8-pr84721.patch Untested fix. Besides fixing this PR, I think it is plain wrong to add the DEBUG_BEGIN_STMTs somewhere at the file scope, they are necessarily tied to functions, so it makes only sense to emit them inside of functions.