summaryrefslogtreecommitdiff
path: root/libgo/runtime
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2013-07-16 15:44:54 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2013-07-16 15:44:54 +0000
commitcba6f997f1fb825e106044abb425ae99bcad6b7d (patch)
tree51dbf3ad8bb86c68e6b41b9aac20e266a9a3e821 /libgo/runtime
parent20d911c31049e9ca5fd93110ea22af4438786912 (diff)
downloadgcc-cba6f997f1fb825e106044abb425ae99bcad6b7d.tar.gz
runtime: Fix build on non-split-stack systems.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@200983 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo/runtime')
-rw-r--r--libgo/runtime/proc.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/libgo/runtime/proc.c b/libgo/runtime/proc.c
index 9639922f2d7..d1f277a8bc8 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