diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2012-02-15 22:29:35 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2012-02-15 22:29:35 +0000 |
commit | ca59d219fea069cdc604aea49ffb4e482b518cee (patch) | |
tree | 8479da6f747b3bcc95251ebeec9fd6caef172543 /libgo/runtime | |
parent | a0367cc1accefe75740171915e77b6122b7c9e67 (diff) | |
download | gcc-ca59d219fea069cdc604aea49ffb4e482b518cee.zip gcc-ca59d219fea069cdc604aea49ffb4e482b518cee.tar.gz gcc-ca59d219fea069cdc604aea49ffb4e482b518cee.tar.bz2 |
runtime: Support broken makecontext on Solaris 8/9.
From Rainer Orth.
From-SVN: r184289
Diffstat (limited to 'libgo/runtime')
-rw-r--r-- | libgo/runtime/proc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libgo/runtime/proc.c b/libgo/runtime/proc.c index 609920a..d7e1e5f 100644 --- a/libgo/runtime/proc.c +++ b/libgo/runtime/proc.c @@ -1316,6 +1316,9 @@ __go_go(void (*fn)(void*), void* arg) getcontext(&newg->context); newg->context.uc_stack.ss_sp = sp; +#ifdef MAKECONTEXT_STACK_TOP + newg->context.uc_stack.ss_sp += spsize; +#endif newg->context.uc_stack.ss_size = spsize; makecontext(&newg->context, kickoff, 0); |