This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH, libgo]: Double StackMin size for 64bit non-split-stack targets
- From: Uros Bizjak <ubizjak at gmail dot com>
- To: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Cc: "gofrontend-dev at googlegroups dot com" <gofrontend-dev at googlegroups dot com>, Ian Taylor <iant at golang dot org>
- Date: Wed, 24 Dec 2014 12:44:59 +0100
- Subject: [PATCH, libgo]: Double StackMin size for 64bit non-split-stack targets
- Authentication-results: sourceware.org; auth=none
Hello!
The attached patch doubles StackMin size for 64bit non-split-stack
targets. This patch fixes regexp libgo failure (tracked as gcc PR61871
[1]) on alpha-linux-gnu.
--cut here--
Index: runtime/proc.c
===================================================================
--- runtime/proc.c (revision 219035)
+++ runtime/proc.c (working copy)
@@ -51,7 +51,7 @@
#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;
--cut here--
Bootstrapped and regression tested on alphaev68-linux-gnu.
[1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61871
Uros.