* dw2gencfi.c (cfi_pseudo_table): Add cfi_gnu_window_save.
authorJakub Jelinek <jakub@redhat.com>
Fri, 29 Aug 2003 20:20:18 +0000 (20:20 +0000)
committerJakub Jelinek <jakub@redhat.com>
Fri, 29 Aug 2003 20:20:18 +0000 (20:20 +0000)
commit364b6d8b23fffbc773c2bda23348d73e8de86e84
treeffe7b74218f18af4d967a05c8fb7bb373ca2161d
parente294916c5a6fd7e6f6a13261100cb1d3a2ee5a82
* dw2gencfi.c (cfi_pseudo_table): Add cfi_gnu_window_save.
(dot_cfi, output_cfi_insn): Handle DW_CFA_GNU_window_save.
(output_cie): Don't use DW_EH_PE_pcrel if neither DIFF_EXPR_OK
nor tc_cfi_emit_pcrel_expr are defined.
(output_fde): Use tc_cfi_emit_pcrel_expr if available and
DIFF_EXPR_OK is not defined.
* config/tc-sparc.h (TARGET_USE_CFIPOP): Define.
(tc_cfi_frame_initial_instructions, tc_regname_to_dw2regnum,
tc_cfi_emit_pcrel_expr): Define.
(sparc_cfi_frame_initial_instructions, sparc_regname_to_dw2regnum,
sparc_cfi_emit_pcrel_expr): New prototypes.
(sparc_cie_data_alignment): New decl.
(DWARF2_DEFAULT_RETURN_COLUMN, DWARF2_CIE_DATA_ALIGNMENT): Define.
* config/tc-sparc.c: Include dw2gencfi.h.
(sparc_cie_data_alignment): New variable.
(md_begin): Initialize it.
(sparc_cfi_frame_initial_instructions): New function.
(sparc_regname_to_dw2regnum): Likewise.
(sparc_cfi_emit_pcrel_expr): Likewise.
* doc/as.texinfo: Document .cfi_gnu_window_save.

* config/tc-sparc.c (s_common): Cast last argument to long and
change format string to shut up warning.
testsuite/
* gas/cfi/cfi-sparc-1.s: New test.
* gas/cfi/cfi-sparc-1.d: New test.
* gas/cfi/cfi-sparc64-1.s: New test.
* gas/cfi/cfi-sparc64-1.d: New test.
* gas/cfi/cfi.exp: Run them.
gas/ChangeLog
gas/config/tc-sparc.c
gas/config/tc-sparc.h
gas/doc/as.texinfo
gas/dw2gencfi.c
gas/testsuite/ChangeLog
gas/testsuite/gas/cfi/cfi-sparc-1.d [new file with mode: 0644]
gas/testsuite/gas/cfi/cfi-sparc-1.s [new file with mode: 0644]
gas/testsuite/gas/cfi/cfi-sparc64-1.d [new file with mode: 0644]
gas/testsuite/gas/cfi/cfi-sparc64-1.s [new file with mode: 0644]
gas/testsuite/gas/cfi/cfi.exp