From: Ian Lance Taylor Date: Mon, 5 Jan 2015 16:13:06 +0000 (+0000) Subject: re PR go/61871 (FAIL: regexp from libgo testsuite on non-split stack targets) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=24fa8749bba103b9258434fc2e3f9a1d99b64385;p=gcc.git re PR go/61871 (FAIL: regexp from libgo testsuite on non-split stack targets) PR go/61871 runtime: Increase stack size on 64-bit non-split-stack systems. From Uros Bizjak. From-SVN: r219192 --- diff --git a/libgo/runtime/proc.c b/libgo/runtime/proc.c index 6270142ea9f..20fbc0a6182 100644 --- a/libgo/runtime/proc.c +++ b/libgo/runtime/proc.c @@ -50,7 +50,7 @@ extern void __splitstack_block_signals_context (void *context[10], int *, #if defined(USING_SPLIT_STACK) && defined(LINKER_SUPPORTS_SPLIT_STACK) # define StackMin PTHREAD_STACK_MIN #else -# define StackMin 2 * 1024 * 1024 +# define StackMin ((sizeof(char *) < 8) ? 2 * 1024 * 1024 : 4 * 1024 * 1024) #endif uintptr runtime_stacks_sys;