On Fri, May 28, 2021 at 8:56 PM Eric Botcazou <botca...@adacore.com> wrote:
>
> But only for the reference variant (dw_val_class_die_ref).  This is needed for
> variable-sized types declared at library level in Ada.
>
> Tested on x86-64/Linux, both GCC and GDB, OK for the mainline?

OK.

Richard.

>
> 2021-05-28  Eric Botcazou  <ebotca...@adacore.com>
>
>         * dwarf2out.c (loc_list_from_tree_1) <FUNCTION_DECL>: Also generate
>         DW_OP_GNU_variable_value referencing an existing DIE at file scope.
>         (type_byte_size): Inline into...
>         (add_byte_size_attribute): ...this and call add_scalar_info.
>
> --
> Eric Botcazou

Reply via email to