public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "boger at us dot ibm.com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug go/66870] split stack issues on ppc64le and ppc64 Date: Tue, 14 Jul 2015 15:52:00 -0000 [thread overview] Message-ID: <bug-66870-4-sJrtuc3zlY@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-66870-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66870 --- Comment #2 from boger at us dot ibm.com --- (In reply to Ian Lance Taylor from comment #1) > The various issues in this bug are in different parts of the code base. The > bug is assigned to me, but, to be clear, I have no plans to work on anything > in the PPC-specific code. > Understood. > For x86, TARGET_CAN_SPLIT_STACK is defined in > gcc/config/i386/gnu-user-common.h. The intent of the code in gospec.c is to > pass -fsplit-stack and -Wl,-u,pthread_create when linking. When compiling, > split stack is turned on by the code in go_langhook_init_options_struct in > gcc/go/go-lang.c. When linking, we want to pass -fsplit-stack so that > gcc/gcc.c uses STACK_SPLIT_SPEC. If the target defines > TARGET_CAN_SPLIT_STACK for all cases where it might support it, I think the > code will more or less work even for cases where split stack is not > supported. If we don't pass those options, then the split-stack code will > not work entirely correctly because new threads won't know their stack size. In gcc.c there is STACK_SPLIT_SPEC which sets --wrap=pthread_create in the LINK_COMMAND_SPEC if -fsplit-stack is set. Is there a reason there are 2 different split stack dependent link options are being set in two different ways?
next prev parent reply other threads:[~2015-07-14 15:52 UTC|newest] Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top 2015-07-14 14:31 [Bug go/66870] New: " boger at us dot ibm.com 2015-07-14 15:02 ` [Bug go/66870] " ian at airs dot com 2015-07-14 15:52 ` boger at us dot ibm.com [this message] 2015-07-14 17:53 ` ian at airs dot com 2015-07-14 20:11 ` schwab@linux-m68k.org 2015-07-14 20:31 ` boger at us dot ibm.com 2015-07-14 22:36 ` schwab@linux-m68k.org 2015-07-15 3:43 ` amodra at gmail dot com 2015-07-15 16:02 ` boger at us dot ibm.com 2015-07-15 16:08 ` boger at us dot ibm.com 2015-07-16 19:29 ` boger at us dot ibm.com 2015-07-17 9:50 ` amodra at gmail dot com 2015-07-17 12:59 ` amodra at gmail dot com 2015-07-22 17:46 ` boger at us dot ibm.com 2015-07-23 12:56 ` boger at us dot ibm.com 2015-07-30 20:42 ` boger at us dot ibm.com 2015-07-31 14:06 ` amodra at gcc dot gnu.org 2015-08-05 13:44 ` boger at us dot ibm.com 2015-08-05 14:48 ` ian at airs dot com 2015-08-05 18:07 ` boger at gcc dot gnu.org 2015-08-13 5:25 ` amodra at gcc dot gnu.org 2015-09-30 23:06 ` ian at gcc dot gnu.org 2015-10-01 12:38 ` boger at us dot ibm.com 2015-10-01 12:40 ` schwab@linux-m68k.org 2015-10-01 13:40 ` ian at airs dot com 2015-10-01 14:03 ` boger at us dot ibm.com 2015-10-01 14:44 ` ian at airs dot com 2015-10-01 14:44 ` ian at gcc dot gnu.org 2015-10-08 19:22 ` boger at gcc dot gnu.org 2015-10-19 23:51 ` amodra at gcc dot gnu.org 2015-10-28 16:01 ` boger at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-66870-4-sJrtuc3zlY@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).