re PR debug/81570 (create_pseudo_cfg assumes that INCOMING_FRAME_SP_OFFSET is a constant)
authorJakub Jelinek <jakub@redhat.com>
Fri, 19 Jan 2018 22:36:04 +0000 (23:36 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 19 Jan 2018 22:36:04 +0000 (23:36 +0100)
commit26fc730dd2b04a718f12ea5ba0aa7a8737cc513e
treeb019a9e56d4c261f73f4aa06dd53814e5ca5c265
parente6f97c3feec266355a80cdcb68a5885748454c39
re PR debug/81570 (create_pseudo_cfg assumes that INCOMING_FRAME_SP_OFFSET is a constant)

PR debug/81570
PR debug/83728
* dwarf2cfi.c (DEFAULT_INCOMING_FRAME_SP_OFFSET): Define to
INCOMING_FRAME_SP_OFFSET if not defined.
(scan_trace): Add ENTRY argument.  If true and
DEFAULT_INCOMING_FRAME_SP_OFFSET != INCOMING_FRAME_SP_OFFSET,
emit a note to adjust the CFA offset.
(create_cfi_notes): Adjust scan_trace callers.
(create_cie_data): Use DEFAULT_INCOMING_FRAME_SP_OFFSET rather than
INCOMING_FRAME_SP_OFFSET in the CIE.
* config/i386/i386.h (DEFAULT_INCOMING_FRAME_SP_OFFSET): Define.
* config/stormy16/stormy16.h (DEFAULT_INCOMING_FRAME_SP_OFFSET):
Likewise.
* doc/tm.texi.in (DEFAULT_INCOMING_FRAME_SP_OFFSET): Document.
* doc/tm.texi: Regenerated.

From-SVN: r256904
gcc/ChangeLog
gcc/config/i386/i386.h
gcc/config/stormy16/stormy16.h
gcc/doc/tm.texi
gcc/doc/tm.texi.in
gcc/dwarf2cfi.c