This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: RFC: generate TLS address arithmetic for back-end
- From: Aldy Hernandez <aldyh at redhat dot com>
- To: Richard Henderson <rth at redhat dot com>, gcc at gcc dot gnu dot org, aoliva at redhat dot com
- Date: Tue, 23 Nov 2004 20:07:12 -0400
- Subject: Re: RFC: generate TLS address arithmetic for back-end
- References: <20041123191139.GA9565@redhat.com> <20041123212108.GA28151@redhat.com>
On Tue, Nov 23, 2004 at 01:21:08PM -0800, Richard Henderson wrote:
> On Tue, Nov 23, 2004 at 03:11:39PM -0400, Aldy Hernandez wrote:
> > * expr.c (expand_expr): case PLUS_EXPR: Treat TLS address
> > arithmetic as a constant.
> > (tree_tls_address_p): New.
>
> A better place to attack this is to arrange for the address of
> such variables to be TREE_INVARIANT (if they're not already),
> and to change the test there from TREE_CONSTANT.
Ok, I'll wait until I have contributed the FRV TLS code to make submit
this patch, as the branch I'm working on does not have TREE_INVARIANT.
Thanks.
Aldy