public inbox for libstdc++@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jonathan Wakely <jwakely.gcc@gmail.com>
To: "Hugo Beauzée-Luyssen" <hugo@beauzee.fr>
Cc: gcc-patches <gcc-patches@gcc.gnu.org>,
	"libstdc++" <libstdc++@gcc.gnu.org>,
	JonY <jon_y@users.sourceforge.net>,
	NightStrike <nightstrike@gmail.com>,  lh_mouse <lh_mouse@126.com>
Subject: Re: [PATCH] libstdc++-v3: Check for TLS support on mingw
Date: Tue, 31 Aug 2021 10:02:32 +0100	[thread overview]
Message-ID: <CAH6eHdQbk7RYp-sq3H0cgvkFkKwpFiporgpABp1NHeG1T_aAnA@mail.gmail.com> (raw)
In-Reply-To: <1519030763.2942755.1275455464.4F3B5B67@webmail.messagingengine.com>

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 */




On Mon, 19 Feb 2018 at 08:59, Hugo Beauzée-Luyssen <hugo@beauzee.fr> wrote:
>
> libstdc++-v3: Check for TLS support on mingw
>
> 2018-02-16  Hugo Beauzée-Luyssen  <hugo@beauzee.fr>
>
>     * crossconfig.m4: Check for TLS support on mignw
>     * configure: regenerate
>
> Index: libstdc++-v3/crossconfig.m4
> ===================================================================
> --- libstdc++-v3/crossconfig.m4 (revision 257730)
> +++ libstdc++-v3/crossconfig.m4 (working copy)
> @@ -197,6 +197,7 @@ case "${host}" in
>      GLIBCXX_CHECK_LINKER_FEATURES
>      GLIBCXX_CHECK_MATH_SUPPORT
>      GLIBCXX_CHECK_STDLIB_SUPPORT
> +    GCC_CHECK_TLS
>      ;;
>    *-netbsd*)
>      SECTION_FLAGS='-ffunction-sections -fdata-sections'

  parent reply	other threads:[~2021-08-31  9:02 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 [this message]
2021-08-31 14:29   ` lhmouse
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=CAH6eHdQbk7RYp-sq3H0cgvkFkKwpFiporgpABp1NHeG1T_aAnA@mail.gmail.com \
    --to=jwakely.gcc@gmail.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=hugo@beauzee.fr \
    --cc=jon_y@users.sourceforge.net \
    --cc=lh_mouse@126.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).