r226964 - in /trunk/libgcc: ChangeLog config/xt...

jcmvbkbc@gcc.gnu.org jcmvbkbc@gcc.gnu.org
Tue Aug 18 01:08:00 GMT 2015


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



More information about the Gcc-cvs mailing list