Add DW_CFA_AARCH64_negate_ra_state to dwarf2.def/h and dwarfnames.c
commitf47edbb56126b7e8564f22b0b9d55565a995b7f0
authorwilco <wilco@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 12 Sep 2017 16:39:59 +0000 (12 16:39 +0000)
committerwilco <wilco@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 12 Sep 2017 16:39:59 +0000 (12 16:39 +0000)
treedf4da622e4ea5d421f6e7ede7d78e8f904057785
parent04c83f14864ca669287c21daaa246341089bc9b0
Add DW_CFA_AARCH64_negate_ra_state to dwarf2.def/h and dwarfnames.c

  A new vendor CFA DW_CFA_AARCH64_negate_ra_state was introduced for ARMv8.3-A
return address signing, it is multiplexing DW_CFA_GNU_window_save in CFA vendor
extension space.

  This patch adds necessary code to make it available to external, the GDB
patch (https://sourceware.org/ml/gdb-patches/2017-08/msg00215.html) is intended
to use it.

  A new DW_CFA_DUP for it is added in dwarf2.def.  The use of DW_CFA_DUP is to
avoid duplicated case value issue when included in libiberty/dwarfnames.

  Native x86 builds OK to make sure no macro expanding errors.

Committed on behalf of Jiong Wang.

    include/
* dwarf2.def (DW_CFA_AARCH64_negate_ra_state): New DW_CFA_DUP.
* dwarf2.h (DW_CFA_DUP): New define.

    libiberty/
* dwarfnames.c (DW_CFA_DUP): New define.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@252037 138bc75d-0d04-0410-961f-82ee72b054a4
include/ChangeLog
include/dwarf2.def
include/dwarf2.h
libiberty/ChangeLog
libiberty/dwarfnames.c