]> git.ipfire.org Git - thirdparty/gcc.git/commit
DWARF: Use DW_OP_addrx and DW_OP_constx for DWARF5.
authormark <mark@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 15 May 2018 08:37:46 +0000 (08:37 +0000)
committermark <mark@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 15 May 2018 08:37:46 +0000 (08:37 +0000)
commit599a98fa661f946204746211eead9ff0d8e0640c
treea042991105fc2fbd204a7b85e9f0bbfd082e0e7a
parent7be3817f26f6b284f0c5a14ac6794240a003cf51
DWARF: Use DW_OP_addrx and DW_OP_constx for DWARF5.

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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@260252 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/dwarf2out.c