libgo patch committed: Catch signals on alternate stack

Submitted by Uros Bizjak on Dec. 22, 2011, 1:47 p.m.

Details

Message ID CAFULd4bzKk0Wu305iRGqpm5Je0bkNc9QMmhWQa0DXeFQxxYung@mail.gmail.com
State New
Headers show

Commit Message

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

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


Uros.

Comments

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 hide | download patch | download mbox

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)
     {