This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.

-- 
Eric Botcazou


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]