This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH 05/10] addr32: Load TP into register for TLS_MODEL_LOCAL_EXEC modes in x32
- From: Uros Bizjak <ubizjak at gmail dot com>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: gcc-patches at gcc dot gnu dot org, Richard Henderson <rth at redhat dot com>
- Date: Mon, 5 Mar 2012 10:05:48 +0100
- Subject: Re: [PATCH 05/10] addr32: Load TP into register for TLS_MODEL_LOCAL_EXEC modes in x32
- Authentication-results: mr.google.com; spf=pass (google.com: domain of ubizjak@gmail.com designates 10.236.46.232 as permitted sender) smtp.mail=ubizjak@gmail.com; dkim=pass header.i=ubizjak@gmail.com
- References: <20120302205603.GC2179@intel.com>
On Fri, Mar 2, 2012 at 9:56 PM, H.J. Lu <hongjiu.lu@intel.com> wrote:
> Since the 0x67 address prefix only zeros out the upper 32bits of the
> (reg) part in address fs:(reg), we can't use fs:(reg) as memory operand
> for x32 with Pmode == SImode. ?We have to load the address into a
> register first and use it as memory operand. ?Tested on Linux/x86-64.
> OK for trunk?
This patch won't be needed when TARGET_TLS_DIRECT_SEG_REFS will be
cleared, as suggested in [1].
[1] http://gcc.gnu.org/ml/gcc-patches/2012-03/msg00252.html
Uros.