aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc.c
diff options
context:
space:
mode:
authorLynn Boger <laboger@linux.vnet.ibm.com>2015-09-30 18:06:11 -0500
committerIan Lance Taylor <ian@gcc.gnu.org>2015-09-30 23:06:11 +0000
commit402565b61f9783473472fcfd729efa8c1e355d2b (patch)
tree37eb8b2f85d9a656044717d6a82ffa026692d05c /gcc/gcc.c
parent7dc396e20f0efa59cad65d95d53ff1541d9ae807 (diff)
downloadgcc-402565b61f9783473472fcfd729efa8c1e355d2b.zip
gcc-402565b61f9783473472fcfd729efa8c1e355d2b.tar.gz
gcc-402565b61f9783473472fcfd729efa8c1e355d2b.tar.bz2
re PR go/66870 (split stack issues on ppc64le and ppc64)
PR target/66870 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define. * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power based on gold linker version. * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if HAVE_GOLD_ALTERNATE_SPLIT_STACK defined. * configure, config.in: Regenerate. go: * gospec.c (lang_specific_driver): Set appropriate split stack options for 64 bit compiles based on TARGET_CAN_SPLIT_STACK_64BIT. From-SVN: r228311
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r--gcc/gcc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c
index 55a7255..db90796 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -667,7 +667,11 @@ proper position among the other output files. */
libgcc. This is not yet a real spec, though it could become one;
it is currently just stuffed into LINK_SPEC. FIXME: This wrapping
only works with GNU ld and gold. */
+#ifdef HAVE_GOLD_NON_DEFAULT_SPLIT_STACK
+#define STACK_SPLIT_SPEC " %{fsplit-stack: -fuse-ld=gold --wrap=pthread_create}"
+#else
#define STACK_SPLIT_SPEC " %{fsplit-stack: --wrap=pthread_create}"
+#endif
#ifndef LIBASAN_SPEC
#define STATIC_LIBASAN_LIBS \