Re: libgo patch committed: Catch signals on alternate stack

2011-12-22 Thread Ian Lance Taylor
Uros Bizjak writes: > I have to use following patch to fix libgo compilation on alpha: Whoops, sorry about that. Patch committed. Ian

Re: libgo patch committed: Catch signals on alternate stack

2011-12-22 Thread Uros Bizjak
Hello! I have to use following patch to fix libgo compilation on alpha: 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

Re: libgo patch committed: Catch signals on alternate stack

2011-12-21 Thread Ian Lance Taylor
Richard Henderson writes: > On 12/21/2011 02:29 PM, Ian Lance Taylor wrote: >> +/* Ignore a signal. This is called on the alternate signal stack so >> + it may not split the stack. */ >> + >> +static void sig_ignore (int) __attribute__ ((no_split_stack)); >> >> static void >> sig_ignore (

Re: libgo patch committed: Catch signals on alternate stack

2011-12-21 Thread Richard Henderson
On 12/21/2011 02:29 PM, Ian Lance Taylor wrote: > +/* Ignore a signal. This is called on the alternate signal stack so > + it may not split the stack. */ > + > +static void sig_ignore (int) __attribute__ ((no_split_stack)); > > static void > sig_ignore (int sig __attribute__ ((unused))) >

libgo patch committed: Catch signals on alternate stack

2011-12-21 Thread Ian Lance Taylor
This patch to libgo catches most signals on the alternate signal stack. The only ones caught on the normal stack are the ones which can occur synchronously: SIGSEGV, SIGBUS, SIGFPE. While updating the signal code I also used SA_SIGINFO to distinguish expected signals (null dereferences, division b