This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFA: MIPS TLS support


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]