Chung-Lin Tang writes:
> * config/mips/mips.md (get_thread_pointer): New pattern.
> * config/mips/mips-protos.h (mips_expand_thread_pointer): Add extern
> declaration.
> * config/mips/mips.c (mips_expand_thread_pointer): Renamed from
> mips_get_tp.
> (mips_g
On 12/7/12 2:53 PM, Chung-Lin Tang wrote:
> Finally, what I personally need, the MIPS parts.
>
> Thanks,
> Chung-Lin
>
> * config/mips/mips.c (mips_get_tp): Add 'target' parameter for
> generating to specific reg.
> (mips_legitimize_tls_address): Update calls to mips_get_t
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)
Chung-Lin Tang writes:
> @@ -2851,11 +2851,12 @@ mips_call_tls_get_addr (rtx sym, enum mips_symbol_
> /* Return a pseudo register that contains the current thread pointer. */
>
> static rtx
> -mips_get_tp (void)
> +mips_get_tp (rtx target)
> {
> - rtx tp, fn;
> + rtx fn;
> + rtx tp = (tar