From: lhmouse <13936485523@126.com>
To: "Jonathan Wakely" <jwakely.gcc@gmail.com>
Cc: "Hugo Beauzée-Luyssen" <hugo@beauzee.fr>,
gcc-patches <gcc-patches@gcc.gnu.org>,
libstdc++ <libstdc++@gcc.gnu.org>,
JonY <jon_y@users.sourceforge.net>,
NightStrike <nightstrike@gmail.com>
Subject: Re:Re: [PATCH] libstdc++-v3: Check for TLS support on mingw
Date: Tue, 31 Aug 2021 22:29:55 +0800 (CST) [thread overview]
Message-ID: <79c6cba9.5095.17b9c9dd9c4.Coremail.13936485523@126.com> (raw)
In-Reply-To: <CAH6eHdQbk7RYp-sq3H0cgvkFkKwpFiporgpABp1NHeG1T_aAnA@mail.gmail.com>
在 2021-08-31 17:02, Jonathan Wakely 写道:
> It looks like my questions about this patch never got an answer, and
> it never got applied.
>
> Could somebody say whether TLS is enabled for native *-*-mingw*
> builds? If it is, then we definitely need to add GCC_CHECK_TLS to the
> cross-compiler config too.
>
> For a linux-hosted x86_64-w64-mingw32 cross compiler I see TLS is not enabled:
>
> /* Define to 1 if the target supports thread-local storage. */
> /* #undef _GLIBCXX_HAVE_TLS */
>
I have been disabling it with `--disable-tls` for years, but... I couldn't remember why. Thread-local storage is implemented with emutls, no matter with or without this option.
Does 'thread-local storage' mean to access thread-local objects via the FS or GS register on x86? If so, then it is definitely not supported yet.
--
Best regards,
LIU Hao
next prev parent reply other threads:[~2021-08-31 14:30 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-19 8:59 Hugo Beauzée-Luyssen
2018-02-26 21:05 ` Jonathan Wakely
2021-08-31 9:02 ` Jonathan Wakely
2021-08-31 14:29 ` lhmouse [this message]
2021-09-01 1:46 ` Jonathan Yong
2021-09-01 9:52 ` Jonathan Wakely
2021-09-15 8:53 ` Jonathan Wakely
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=79c6cba9.5095.17b9c9dd9c4.Coremail.13936485523@126.com \
--to=13936485523@126.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=hugo@beauzee.fr \
--cc=jon_y@users.sourceforge.net \
--cc=jwakely.gcc@gmail.com \
--cc=libstdc++@gcc.gnu.org \
--cc=nightstrike@gmail.com \
/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: link
Be 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).