GOMP Threadprivate on Darwin/non-ELF

Brian Dessent brian@dessent.net
Thu Jun 5 18:27:00 GMT 2008

Matt Fago wrote:

> Looking around bugzilla and the mailing lists turned up an old
> proposal by Asher to add this:
>     http://gcc.gnu.org/ml/fortran/2006-08/msg00191.html
> but from this thread it seems to have been dropped. Did this somehow
> make it into gcc 4.3 or 4.4? It'll take a while to build a new 4.3/4.4
> toolchain just to check...

It was probably dropped as irrelevant because TLS emulation went into
4.3 instead, as foreshadowed by Richard Henderson's reply in that
thread.  The emutls patch implements the "__thread" extension for
targets that do not have the ELF style TLS but which do supply
__gthread_{get,set}specific implementations in their threading model,
such as pthreads.  So threadprivate ought to work on 4.3 as long as the
target's threading model is POSIX or any other one that does provide


More information about the Gcc-help mailing list