From 081e7aadae346fc795dc36fae242d2c43c3d05ca Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 16 Jul 2013 15:44:54 +0000 Subject: runtime: Fix build on non-split-stack systems. From-SVN: r200983 --- libgo/runtime/proc.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'libgo/runtime') 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 -- cgit v1.1