PATCH: break MIPS16 TLS

Sandra Loosemore sandra@codesourcery.com
Wed Sep 5 14:35:00 GMT 2007


Richard Sandiford wrote:
> Sandra Loosemore <sandra@codesourcery.com> writes:
>> 	gcc/
>> 	* config/mips/mips.c (mips_legitimize_tls_address): Call sorry
>> 	if we encounter TLS address in MIPS16 mode.
>> 	(mips_legitimize_const_move):  Check cannot_force_const_mem for
>> 	the (const (plus symbol offset)) case; this forces invalid TLS
>> 	address in MIPS16 mode to be caught by the above call to sorry.
>> 	(override_options): Don't reset targetm.have_tls in MIPS16 mode,
>> 	because that now enables emutls, which is not ABI compatible
>> 	with native TLS in non-MIPS16 mode.
> 
> OK.  I can't approve the testsuite stuff.

I've committed just the MIPS-specific part above.  If anyone wants to 
approve the testsuite hackery, or suggest a better way to do it, I'll 
take care of that later.

-Sandra



More information about the Gcc-patches mailing list