From: "H.J. Lu" <hjl.tools@gmail.com>
To: "Joseph S. Myers" <joseph@codesourcery.com>
Cc: gcc-patches@gcc.gnu.org, libstdc++@gcc.gnu.org, java-patches@gcc.gnu.org
Subject: Re: Improve TLS link test for cross-compiling
Date: Fri, 17 Jul 2009 13:58:00 -0000 [thread overview]
Message-ID: <6dc9ffc80907170658r55d9e0d2jefcdfc4141e29eef@mail.gmail.com> (raw)
In-Reply-To: <Pine.LNX.4.64.0907021941020.23975@digraph.polyomino.org.uk>
On Thu, Jul 2, 2009 at 12:44 PM, Joseph S. Myers<joseph@codesourcery.com> wrote:
> When cross-compiling, GCC_CHECK_TLS uses a link-time test for TLS
> support. However, code built for an executable, or linked into an
> executable, can link OK when libc in fact lacks TLS support, even if
> code linked into a shared library would not, because of the different
> TLS access models and linker optimizations used in the different
> cases.
>
> This patch adds an additional link-time test for linking with -shared
> -Wl,--no-undefined in this case: if linking a non-TLS file with those
> options succeeds (so, in particular, they are appropriate options for the
> target in question), but linking TLS code with them fails, then TLS is not
> supported. Tested with no regressions with cross to i686-pc-linux-gnu
> using a sysroot with pre-TLS libc. OK to commit?
>
> config:
> 2009-07-02 Joseph Myers <joseph@codesourcery.com>
>
> * tls.m4 (GCC_CHECK_TLS): Also test TLS in a shared library when
> cross-compiling.
>
> libgomp:
> 2009-07-02 Joseph Myers <joseph@codesourcery.com>
>
> * configure: Regenerate.
>
> libjava:
> 2009-07-02 Joseph Myers <joseph@codesourcery.com>
>
> * configure: Regenerate.
>
> libmudflap:
> 2009-07-02 Joseph Myers <joseph@codesourcery.com>
>
> * configure: Regenerate.
>
> libstdc++-v3:
> 2009-07-02 Joseph Myers <joseph@codesourcery.com>
>
> * configure: Regenerate.
>
This caused:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40784
--
H.J.
prev parent reply other threads:[~2009-07-17 13:58 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-02 20:11 Joseph S. Myers
2009-07-02 19:47 ` Andrew Pinski
2009-07-02 19:58 ` Joseph S. Myers
2009-07-03 11:20 ` Dave Korn
2009-07-14 16:09 ` Ping " Joseph S. Myers
2009-07-14 18:56 ` Paolo Bonzini
2009-07-14 20:15 ` Joseph S. Myers
2009-07-17 0:19 ` Joseph S. Myers
2009-07-17 13:31 ` H.J. Lu
2009-07-17 16:15 ` Joseph S. Myers
2009-07-17 15:16 ` Paolo Bonzini
2009-07-17 13:58 ` H.J. Lu [this message]
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=6dc9ffc80907170658r55d9e0d2jefcdfc4141e29eef@mail.gmail.com \
--to=hjl.tools@gmail.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=java-patches@gcc.gnu.org \
--cc=joseph@codesourcery.com \
--cc=libstdc++@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: 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).