https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102373
--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> --- (In reply to dave.anglin from comment #2) > On 2021-09-16 1:38 p.m., jakub at gcc dot gnu.org wrote: > > This looks wrong, comp_unit_die () should have DW_AT_producer at this point. > > gen_compile_unit_die should have added it... > I did change dwarf_version to 4. That shouldn't change anything - look at comp_unit_die () and how it eventually calls gen_compile_unit_die which adds DW_AT_producer.