unwind-ia64.c (ia64_copy_rbs): New function.
authorJakub Jelinek <jakub@redhat.com>
Fri, 19 Dec 2003 14:00:53 +0000 (15:00 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 19 Dec 2003 14:00:53 +0000 (15:00 +0100)
commite8c89d29703051af683fe65dc055089b61acde2f
tree7faf100b24bd243e8eba0de3b6bf9f538ba40ee2
parenteffed6551681c1411cfaebeb005979cb6996e528
unwind-ia64.c (ia64_copy_rbs): New function.

* config/ia64/unwind-ia64.c (ia64_copy_rbs): New function.
(unw_access_gr): Only call ia64_rse_rnat_addr if addr is above
regstk_top.
(uw_frame_state_for): Handle locations inside bundles.
(uw_init_context_1): Initialize context->rnat.
Set context->regstk_top to lowest rbs address which has nat collection
in context->rnat.
(uw_install_context): Fix rnat restoring.
Restore ar.rsc to previous state.
* config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR,
MD_HANDLE_UNWABI): Handle unwinding through SA_ONSTACK frames.

* gcc.dg/cleanup-10.c: New test.
* gcc.dg/cleanup-11.c: New test.

From-SVN: r74835
gcc/ChangeLog
gcc/config/ia64/linux.h
gcc/config/ia64/unwind-ia64.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/cleanup-10.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/cleanup-11.c [new file with mode: 0644]