On 6/26/19 2:06 PM, Mark Wielaard wrote:
> Even if there was no, or an empty address list we would try to generate
> and index for the .debug_addr section with -gdwarf-5 and -gsplit-dwarf.
> The skeleton DIE would also get a (dangling) DW_AT_addr_base in that case.
> 
>       PR debug/90981
>       * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
>       DW_AT_addr_base if there is actually a .debug_addr section with
>       addresses.
>       (output_addr_table): Add DWARF5 table index generation here after
>       checking there are actually any addresses from...
>       (dwarf2out_finish): ...here.
>       * testsuite/g++.dg/pr90981.C: New test.
OK
jeff

Reply via email to