https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98708
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> --- I'd be for automatic bumping to dwarf5 level if .file 0 is seen, but remember that it happened and issue an error if .debug_info with version older than 5 is seen in the file.