Re: [PATCH 6/6] Thread pointer built-in functions, mips

2012-08-28 Thread Chung-Lin Tang
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_tp().

Re: [PATCH 6/6] Thread pointer built-in functions, mips

2012-08-28 Thread Richard Sandiford
Chung-Lin Tang clt...@codesourcery.com writes: * config/mips/mips.md (get_thread_pointermode): New pattern. * config/mips/mips-protos.h (mips_expand_thread_pointer): Add extern declaration. * config/mips/mips.c (mips_expand_thread_pointer): Renamed from

Re: [PATCH 6/6] Thread pointer built-in functions, mips

2012-07-13 Thread Chung-Lin Tang
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

[PATCH 6/6] Thread pointer built-in functions, mips

2012-07-12 Thread Chung-Lin Tang
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_tp(). (mips_expand_builtin_thread_pointer): Add

Re: [PATCH 6/6] Thread pointer built-in functions, mips

2012-07-12 Thread Richard Sandiford
Chung-Lin Tang clt...@codesourcery.com 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; +