[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gcc-patches
Subject:    Re: [DWARF] Also generate DW_OP_GNU_variable_value at file scope
From:       Richard Biener via Gcc-patches <gcc-patches () gcc ! gnu ! org>
Date:       2021-05-31 6:33:53
Message-ID: CAFiYyc3Lg8NNDsM8cVNm2QD_kkp5b=U0enOsmrOGBgbfPvj7pA () mail ! gmail ! com
[Download RAW message or body]

On Fri, May 28, 2021 at 8:56 PM Eric Botcazou <botcazou@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  <ebotcazou@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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic