On Sun, Jun 10, 2018 at 09:26:51AM +0200, Olivier Hainque wrote: > Hi Jakub, > > > On 07 Jun 2018, at 10:36, Jakub Jelinek <ja...@redhat.com> wrote: > > > The whole point of -gstrict-dwarf is that it doesn't allow any extensions, > > and DW_LANG_Ada83/DW_LANG_Ada95 only appeared in DWARF3. > > Actually, according to > > http://wiki.dwarfstd.org/index.php?title=DWARF_Language_Support
Well, you should better be looking at the pdfs of the standards, that is more precise. And there it says: Names marked with † and their associated values are reserved, but the languages they represent are not supported in DWARF Version 2. ... DW_LANG_Ada83† 0x0003 so, using DW_LANG_Ada83 is fine for dwarf-2. > 2018-06-10 Olivier Hainque <hain...@adacore.com> > > * dwarf2out.c (gen_compile_unit_die): fallout to DW_LANG_Ada83 > for Ada with strict dwarf2. Use uppercase Fallout. Otherwise ok for trunk. Jakub