libgo/runtime: Fix signal stack size for ia64

Andreas Schwab schwab@suse.de
Fri Sep 2 15:58:00 GMT 2016


On Aug 31 2016, Ian Lance Taylor <iant@google.com> wrote:

> Index: libgo/runtime/runtime.c
> ===================================================================
> --- libgo/runtime/runtime.c	(revision 239872)
> +++ libgo/runtime/runtime.c	(working copy)
> @@ -272,7 +272,14 @@ runtime_tickspersecond(void)
>  void
>  runtime_mpreinit(M *mp)
>  {
> -	mp->gsignal = runtime_malg(32*1024, (byte**)&mp->gsignalstack, &mp->gsignalstacksize);	// OS X wants >=8K, Linux >=2K
> +	int32 stacksize = 32 * 1024;	// OS X wants >=8K, Linux >=2K
> +
> +#ifdef SIGSTKSZ
> +	if(stacksize < SIGSTKSZ)
> +		stacksize = SIGSTKSZ;
> +#endif

There is nothing that defines SIGSTKSZ.

Andreas.

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."



More information about the Gcc-patches mailing list