From: Ian Lance Taylor Date: Tue, 16 Jul 2013 15:44:54 +0000 (+0000) Subject: runtime: Fix build on non-split-stack systems. X-Git-Tag: releases/gcc-4.9.0~4996 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=081e7aadae346fc795dc36fae242d2c43c3d05ca;p=thirdparty%2Fgcc.git runtime: Fix build on non-split-stack systems. From-SVN: r200983 --- diff --git a/libgo/runtime/proc.c b/libgo/runtime/proc.c index 9639922f2d70..d1f277a8bc82 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