Re: [PATCH] DWARF: Use DW_OP_addrx and DW_OP_constx for DWARF5.

2018-05-14 Thread Jeff Law
On 05/14/2018 07:35 AM, Mark Wielaard wrote: > For older DWARF and -gsplit-dwarf we want to emit DW_OP_GNU_addr_index > and DW_OP_GNU_const_index, but for DWARF5 we should use DW_OP_addrx > and DW_OP_constx. > > gcc/ChangeLog: > > * dwarf2out.c (dwarf_OP): Handle DW_OP_addrx and

[PATCH] DWARF: Use DW_OP_addrx and DW_OP_constx for DWARF5.

2018-05-14 Thread Mark Wielaard
For older DWARF and -gsplit-dwarf we want to emit DW_OP_GNU_addr_index and DW_OP_GNU_const_index, but for DWARF5 we should use DW_OP_addrx and DW_OP_constx. gcc/ChangeLog: * dwarf2out.c (dwarf_OP): Handle DW_OP_addrx and DW_OP_constx. (size_of_loc_descr): Likewise.