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

Olivier Hainque hainque@adacore.com
Sun Jun 10 07:27:00 GMT 2018


Hi Jakub,

> On 07 Jun 2018, at 10:36, Jakub Jelinek <jakub@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

DW_LANG_Ada83 is dwarf-2 and DW_LANG_Ada95 is dwarf-3.

So what about the attached variant instead ? I can add test if needed.

Thanks in advance,

With Kind Regards,

Olivier

2018-06-10  Olivier Hainque  <hainque@adacore.com>

        * dwarf2out.c (gen_compile_unit_die): fallout to DW_LANG_Ada83
        for Ada with strict dwarf2.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: dw2-ada83.diff
Type: application/octet-stream
Size: 535 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20180610/3a40f27c/attachment.obj>


More information about the Gcc-patches mailing list