runtime: Fix build on non-split-stack systems.
authorIan Lance Taylor <ian@gcc.gnu.org>
Tue, 16 Jul 2013 15:44:54 +0000 (15:44 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 16 Jul 2013 15:44:54 +0000 (15:44 +0000)
From-SVN: r200983

libgo/runtime/proc.c

index 9639922f2d70d5aad67e47b7eff2e5e3e915d617..d1f277a8bc82692d4e858ee2ad329b7c2db28a62 100644 (file)
@@ -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