On Sun, May 07, 2017 at 05:37:47PM +0200, Mark Kettenis wrote:
> So this enables the code.  It makes -femulated-tls the default,
> otherwise it will generated TLS relocations that we can't handle yet.
> It is possible to specify -fno-emulated-tls if you really want to
> generate those.
> 
> A trivial example program that modifies the variable in one thread and
> prints it in another seems to work as expected.
> 
> Note that the libcompiler_rt implementation unconditionally references
> some symbols in libpthread.  So linking with -lpthread is mandatory.
> GCC 4.9 uses weak references, so -lpthread isn't needed there.
> 
> Perhaps those functions should move to libc.  Or we can make the
> libcompiler_rt code a bit smarter.
> 
> Also note that the libcompiler_rt implementation offers the choice
> between posix_memalign() and normal malloc().  With this diff it uses
> malloc().  Perhaps otto@ has an opinion what's better here?

lang/racket-minimal builds and passes the tests (which includes tests
for the TLS related functionality).


-- 
Juan Francisco Cantero Hurtado http://juanfra.info

Reply via email to