This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.

Attachment: dw2-ada83.diff
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]