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: [PATCH 6/6] Thread pointer built-in functions, mips


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


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