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 DW_OP_constx.
>       (size_of_loc_descr): Likewise.
>       (output_loc_operands): Likewise.
>       (output_loc_operands_raw): Likewise.
>       (dw_addr_op): Use dwarf_OP () for DW_OP_constx and DW_OP_addrx.
>       (resolve_addr_in_expr): Handle DW_OP_addrx and DW_OP_constx.
>       (hash_loc_operands): Likewise.
>       (compare_loc_operands): Likewise.
OK.
jeff

Reply via email to