Patchwork libgo patch committed: Catch signals on alternate stack

login
register
mail settings
Submitter Uros Bizjak
Date Dec. 22, 2011, 1:47 p.m.
Message ID <CAFULd4bzKk0Wu305iRGqpm5Je0bkNc9QMmhWQa0DXeFQxxYung@mail.gmail.com>
Download mbox | patch
Permalink /patch/132847/
State New
Headers show

Comments

Uros Bizjak - Dec. 22, 2011, 1:47 p.m.
Hello!

I have to use following patch to fix libgo compilation on alpha:


Uros.
Ian Taylor - Dec. 22, 2011, 7:07 p.m.
Uros Bizjak <ubizjak@gmail.com> writes:

> I have to use following patch to fix libgo compilation on alpha:

Whoops, sorry about that.

Patch committed.

Ian

Patch

Index: runtime/go-signal.c
===================================================================
--- runtime/go-signal.c (revision 182615)
+++ runtime/go-signal.c (working copy)
@@ -346,7 +346,11 @@ 
   mp = runtime_m ();

   if (gp != NULL)
-    __splitstack_getcontext (&gp->stack_context[0]);
+    {
+#ifdef USING_SPLIT_STACK
+      __splitstack_getcontext (&gp->stack_context[0]);
+#endif
+    }

   if (gp != NULL && mp->gsignal != NULL)
     {