On 2012/7/13 02:45 AM, Richard Sandiford wrote:
> /* Implement TARGET_EXPAND_BUILTIN_THREAD_POINTER.  */
> 
> static rtx
> mips_expand_builtin_thread_pointer (rtx tp)
> {
>   rtx fn;
> 
>   if (TARGET_MIPS16)
>     ...
> }
> 
> (i.e. always using the passed-in tp, which is safe with your 1/6 patch),
> then change mips_get_tp as follows:
> 
> /* Return a pseudo register that contains the current thread pointer.  */
> 
> static rtx
> mips_get_tp (void)
> {
>   return mips_expand_builtin_thread_pointer (gen_reg_rtx (Pmode));
> }
> 
> OK with that change, thanks.
> 
> Richard
> 

Thanks! This looks prettier :)
I'll change to this form before applying.

Chung-Lin

Reply via email to