gas: sframe: add support for .cfi_negate_ra_state
authorIndu Bhagat <indu.bhagat@oracle.com>
Sat, 17 Dec 2022 06:01:51 +0000 (22:01 -0800)
committerIndu Bhagat <indu.bhagat@oracle.com>
Sat, 17 Dec 2022 06:01:51 +0000 (22:01 -0800)
commit28f69152b99fd3a774e9bb9e66496cb1d7fd03b9
tree656e578c608e7b7a7b4d4f6a8ca18cb034988fe5
parent4604c7294166199f89a0122ee35095d7e0cd2d07
gas: sframe: add support for .cfi_negate_ra_state

DW_CFA_AARCH64_negate_ra_state in aarch64 is multiplexed with
DW_CFA_GNU_window_save in the DWARF format.

Remove the common-empty-4 testcase because the generated SFrame section
will not be be empty anymore.  A relevant test will be added in a later
commit.

ChangeLog:

* gas/gen-sframe.c (sframe_v1_set_fre_info): Add new argument
for mangled_ra_p.
(sframe_set_fre_info): Likewise.
(output_sframe_row_entry): Handle mangled_ra_p.
(sframe_row_entry_new): Reset mangled_ra_p.
(sframe_row_entry_initialize): Initialize mangled_ra_p.
(sframe_xlate_do_gnu_window_save): New definition.
(sframe_do_cfi_insn): Handle DW_CFA_GNU_window_save.
* gas/gen-sframe.h (struct sframe_row_entry): New member.
(struct sframe_version_ops): Add a new argument for
mangled_ra_p.
* gas/testsuite/gas/cfi-sframe/cfi-sframe.exp: Remove test.
* gas/testsuite/gas/cfi-sframe/common-empty-4.d: Removed.
* gas/testsuite/gas/cfi-sframe/common-empty-4.s: Removed.
gas/gen-sframe.c
gas/gen-sframe.h
gas/testsuite/gas/cfi-sframe/cfi-sframe.exp
gas/testsuite/gas/cfi-sframe/common-empty-4.d [deleted file]
gas/testsuite/gas/cfi-sframe/common-empty-4.s [deleted file]