This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r226964 - in /trunk/libgcc: ChangeLog config/xt...
- From: jcmvbkbc at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Tue, 18 Aug 2015 01:08:23 -0000
- Subject: r226964 - in /trunk/libgcc: ChangeLog config/xt...
Author: jcmvbkbc
Date: Tue Aug 18 01:08:22 2015
New Revision: 226964
URL: https://gcc.gnu.org/viewcvs?rev=226964&root=gcc&view=rev
Log:
xtensa: fix _Unwind_GetCFA
Returning context->cfa in _Unwind_GetCFA makes CFA point one stack frame
higher than what was actually used by code at context->ra. This results
in invalid CFA value in signal frames and premature unwinding completion
in forced unwinding used by uClibc NPTL thread cancellation.
Returning context->sp from _Unwind_GetCFA makes all CFA values valid and
matching code that used them.
2015-08-18 Max Filippov <jcmvbkbc@gmail.com>
libgcc/
* config/xtensa/unwind-dw2-xtensa.c (_Unwind_GetCFA): Return
context->sp instead of context->cfa.
Modified:
trunk/libgcc/ChangeLog
trunk/libgcc/config/xtensa/unwind-dw2-xtensa.c