Re: [DWARF] Also generate DW_OP_GNU_variable_value at file scope

2021-05-30 Thread Richard Biener via Gcc-patches
On Fri, May 28, 2021 at 8:56 PM Eric Botcazou 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 B

[DWARF] Also generate DW_OP_GNU_variable_value at file scope

2021-05-28 Thread Eric Botcazou
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? 2021-05-28 Eric Botcazou * dwarf2out.c (loc_list_from_tree_1) : Also generate