https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119317
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I should mention another workaround if you don't want to disable debugging info, is to add -gno-statement-frontiers . Since there are no debugger consumers of dwarf statement-frontiers should not cause any issues with your debugging experience.