On Tue, May 5, 2020 at 10:43 AM Eric Botcazou <botca...@adacore.com> wrote:
>
> Hi,
>
> The -fgnat-encodings=minimal switch tells the compiler to generate motly pure
> DWARF for the GNAT compiler and it contains some bugs related to discriminated
> record types with variant part.
>
> Tested on x86-64/Linux, OK for the mainline?

OK.

Thanks,
Richard.

>
> 2020-05-05  Eric Botcazou  <ebotca...@adacore.com>
>             Pierre-Marie de Rodat  <dero...@adacore.com>
>
>         * dwarf2out.c (add_data_member_location_attribute): Take into account
>         the variant part offset in the computation of the data bit offset.
>         (add_bit_offset_attribute): Remove CTX parameter.  Pass a new context
>         in the call to field_byte_offset.
>         (gen_field_die): Adjust call to add_bit_offset_attribute and remove
>         confusing assertion.
>         (analyze_variant_discr): Deal with boolean subtypes.
>
>
> 2020-05-05  Eric Botcazou  <ebotca...@adacore.com>
>
>         * gnat.dg/debug16.adb: New test.
>
> --
> Eric Botcazou

Reply via email to