This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH 6/6] Thread pointer built-in functions, mips
- From: Chung-Lin Tang <cltang at codesourcery dot com>
- To: gcc-patches <gcc-patches at gcc dot gnu dot org>, <rsandifo at nildram dot co dot uk>
- Date: Fri, 13 Jul 2012 14:54:36 +0800
- Subject: Re: [PATCH 6/6] Thread pointer built-in functions, mips
- References: <4FFE744F.40405@codesourcery.com> <87r4sg7r8a.fsf@talisman.home>
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