xtensa: libgcc: fix PR target/95571
authorMax Filippov <jcmvbkbc@gmail.com>
Sat, 6 Jun 2020 12:06:04 +0000 (05:06 -0700)
committerMax Filippov <jcmvbkbc@gmail.com>
Tue, 9 Jun 2020 01:30:07 +0000 (18:30 -0700)
commit1d9921cbdc732e1a7fc66b9c24a6dfa9625bd4c0
tree60b219c10241be1e2f0c7bc32e7154074cc2074a
parentdf2c0060e5d1e0a37001b93f36e9245bb75ef33b
xtensa: libgcc: fix PR target/95571

Rewrite uw_install_context without function calls to avoid register
spilling in _Unwind_RaiseException during return context installation.

2020-06-08  Max Filippov  <jcmvbkbc@gmail.com>
gcc/testsuite/
* g++.target/xtensa/pr95571.C: New test.
* g++.target/xtensa/xtensa.exp: New testsuite.

libgcc/
* config/xtensa/unwind-dw2-xtensa.c (uw_install_context): Merge
with uw_install_context_1.
gcc/testsuite/g++.target/xtensa/pr95571.C [new file with mode: 0644]
gcc/testsuite/g++.target/xtensa/xtensa.exp [new file with mode: 0644]
libgcc/config/xtensa/unwind-dw2-xtensa.c