https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98067
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> --- (In reply to Richard Biener from comment #5) > > Would it be correct to fallback on a lang_hooks.name comparison if > > dwarf_version < 2? > > I wonder if we can instead "delay" applying "strict dwarf" to the actual > output of DW_AT_language. I mean, with DWARF2 there should be no debug > for D at all since you can't specify the source language ... I think that would be quite problematic, because we earlier decide on the abbreviation for it, consider it for sizes etc. and all that is from the exact value, which could be different. Using lang_hooks.name is problematic too, that would be GNU GIMPLE for lto... Though maybe we don't need it during late dwarf at all.