This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: RFA: MIPS TLS support
- From: Daniel Jacobowitz <drow at false dot org>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 9 Mar 2005 13:29:45 -0500
- Subject: Re: RFA: MIPS TLS support
- References: <20050309182711.GA19659@nevyn.them.org>
On Wed, Mar 09, 2005 at 01:27:11PM -0500, Daniel Jacobowitz wrote:
> This patch adds TLS support for MIPS. I don't have a whole lot to say about
> it, except that the MIPS backend symbol classification bits are really neat,
> and the mode macros in the md file are also really neat.
>
> The TLS ABI defines the thread pointer access instruction as "rdhwr $3,
> $29". It has to be that particular instruction, because a fast-path
> emulation is much more efficient when the destination register is fixed.
> So I needed to introduce a new register class for $v1; thank you, Ian,
> for sanity checking me while I worked out the reason I couldn't hard code
> (reg:P 3) in the instruction. [Reload won't bother this, but the RTL loop
> optimizer will.]
>
> OK for 4.1?
Forgot to mention: tested on mips-linux, using head binutils and a
patched kernel and glibc. Both GCC and NPTL test results look good.
--
Daniel Jacobowitz
CodeSourcery, LLC