This is the mail archive of the
mailing list for the GCC project.
Re: [patch] TLS support for hppa-linux
> > > +/* Non-TLS symbolic references. */
> > > +#define PA_SYMBOL_REF_TLS_P(RTX) \
> > > + (GET_CODE (RTX) == SYMBOL_REF && SYMBOL_REF_TLS_MODEL (RTX) != 0)
> > Either in legitimize address or in your move expanders, you must
> > handle (const (plus (symbol_ref "tlssym") (const_int))). There
> > should be an existing test for this.
> I don't understand this point, what do you think is missing?
> I modelled the above macro predicate from sparc. It replaces calls to
> "tls_symbolic_operand" in places where we cannot call that predicate in
> the code.
SPARC handles the case Richard is talking about in the unified move expander
sparc_expand_move. It is copied straight from his implementation for PPC.
The test is gcc.dg/tls/opt-9.c.