diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2013-07-16 15:44:54 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2013-07-16 15:44:54 +0000 |
commit | 081e7aadae346fc795dc36fae242d2c43c3d05ca (patch) | |
tree | 51dbf3ad8bb86c68e6b41b9aac20e266a9a3e821 /libgo/runtime | |
parent | 1c858af58feeeb170eb8a1e88b4ea670de2e16f0 (diff) | |
download | gcc-081e7aadae346fc795dc36fae242d2c43c3d05ca.zip gcc-081e7aadae346fc795dc36fae242d2c43c3d05ca.tar.gz gcc-081e7aadae346fc795dc36fae242d2c43c3d05ca.tar.bz2 |
runtime: Fix build on non-split-stack systems.
From-SVN: r200983
Diffstat (limited to 'libgo/runtime')
-rw-r--r-- | libgo/runtime/proc.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libgo/runtime/proc.c b/libgo/runtime/proc.c index 9639922..d1f277a 100644 --- a/libgo/runtime/proc.c +++ b/libgo/runtime/proc.c @@ -1666,7 +1666,11 @@ runtime_entersyscall() &g->gcnext_segment, &g->gcnext_sp, &g->gcinitial_sp); #else - g->gcnext_sp = (byte *) &v; + { + uint32 v; + + g->gcnext_sp = (byte *) &v; + } #endif // Save the registers in the g structure so that any pointers @@ -1713,7 +1717,7 @@ runtime_entersyscallblock(void) &g->gcnext_segment, &g->gcnext_sp, &g->gcinitial_sp); #else - g->gcnext_sp = (byte *) &v; + g->gcnext_sp = (byte *) &p; #endif // Save the registers in the g structure so that any pointers |