On Mon, Feb 25, 2013 at 09:08:37PM -0800, Matthew Dempsky wrote:
> There's certainly interest in supporting ELF TLS (i.e., the __thread and
> thread_local storage classes), but it's going to require some more work
> still.
>
> I'm not familiar with GCC 4.6's TLS support in specific, but unless it
> compiles to calls to pthread_{get,set}specific(), etc (which I don't think
> it does), it's not going to work on OpenBSD.
This is emulated. Apparently the emulation also works in targets without
threads support. http://gcc.gnu.org/ml/gcc/2008-12/msg00108.html
I don't know if GCC 4.6 uses those calls on OpenBSD. The problem is TLS
seems work but it doesn't.
>
> On Mon, Feb 25, 2013 at 5:50 PM, Juan Francisco Cantero Hurtado <
> [email protected]> wrote:
>
> > Hi. Just a quick question. Is thread-local storage support on GCC 4.2 or
> > Clang in the roadmap of some developer or nobody is interested?. I'm
> > asking because I don't know if I can trust the TLS support of GCC 4.6.
> >
> > Cheers.
> >
--
Juan Francisco Cantero Hurtado http://juanfra.info