This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix TLS support on SPARC/Solaris with native tools
> > * config/sparc/sol2-bi.h (ASM_DECLARE_OBJECT_NAME): New.
> > Emit "tls_object" for thread-local objects.
> > * config/sparc/sol2-gas-bi.h (ASM_DECLARE_OBJECT_NAME): New.
> > Do no emit "tls_object" for thread-local objects.
>
> This is more complex than needed. Support for tls_object
> was added at the same time Sparc tls support was added.
I see. I'll add the new ASM_DECLARE_OBJECT_NAME to sparc.h then, right after
#ifdef HAVE_AS_TLS
#define TARGET_TLS 1
#else
#define TARGET_TLS 0
#endif
#define TARGET_SUN_TLS TARGET_TLS
#define TARGET_GNU_TLS 0
> The question of tls_object (or not) for gas is only relevant
> to non-sparc targets.
OK. Thanks for your help.
--
Eric Botcazou