[patch] dwarf2out don't discriminate on dwarf version for advertising Ada

Olivier Hainque hainque@adacore.com
Thu Jun 7 09:10:00 GMT 2018


> On 07 Jun 2018, at 10:36, Jakub Jelinek <jakub@redhat.com> wrote:
> 
> No, this is just wrong.
> 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.

Oh, I hadn't realized that. I see.

> Perhaps don't use -gstrict-dwarf if you are using gdb which should handle
> not just DWARF extensions, but also DWARF3/4, so even -gdwarf-4
> -gno-strict-dwarf?

I'll check our options. Our current default settings in
the compiler are intended to accommodate non gdb debuggers, and
we can probably proceed with explicit adjustments on the command
line in the gdb case indeed.

Thanks for your prompt feedback,

Olivier




More information about the Gcc-patches mailing list