projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f637ebc
)
runtime: Don't clobber saved context when catching signal.
author
Ian Lance Taylor
<ian@gcc.gnu.org>
Mon, 14 Oct 2013 21:02:52 +0000
(21:02 +0000)
committer
Ian Lance Taylor
<ian@gcc.gnu.org>
Mon, 14 Oct 2013 21:02:52 +0000
(21:02 +0000)
From-SVN: r203577
libgo/runtime/go-signal.c
patch
|
blob
|
history
diff --git
a/libgo/runtime/go-signal.c
b/libgo/runtime/go-signal.c
index
9771b71
..
af99dde
100644
(file)
--- a/
libgo/runtime/go-signal.c
+++ b/
libgo/runtime/go-signal.c
@@
-399,6
+399,7
@@
sig_tramp_info (int sig, Siginfo *info, void *context)
{
G *gp;
M *mp;
+ void *stack_context[10];
/* We are now running on the stack registered via sigaltstack.
(Actually there is a small span of time between runtime_siginit
@@
-409,7
+410,7
@@
sig_tramp_info (int sig, Siginfo *info, void *context)
if (gp != NULL)
{
#ifdef USING_SPLIT_STACK
- __splitstack_getcontext (&
gp->
stack_context[0]);
+ __splitstack_getcontext (&stack_context[0]);
#endif
}
@@
-432,7
+433,7
@@
sig_tramp_info (int sig, Siginfo *info, void *context)
if (gp != NULL)
{
#ifdef USING_SPLIT_STACK
- __splitstack_setcontext (&
gp->
stack_context[0]);
+ __splitstack_setcontext (&stack_context[0]);
#endif
}
}