https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119367
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Or final.cc could arrange through length attributes if supported by the target to emit artificial debug_hooks->source_line calls if the length since the last source_line change is longer than say 16384 bytes (or have it configurable depending on whether some debug_hook member sets it, could be infinity unless emitting .debug_line directly rather than using .loc directives). Though, I'm afraid I don't know much about when a source_line call is supposed to change view and when it is not.