http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58127
--- Comment #5 from Iain Sandoe <iains at gcc dot gnu.org> --- (In reply to Jan Hubicka from comment #4) > The secret plan was to not use TLS for emutls. OK - I'll take a look at what should be used for the test... > There seems to be macro USE_EMUTLS specifying if we have real TLS or emuTLS. > > I am not sure what of the two tests passes. Perhaps it will help to replace > #ifdef HAVE_CC_TLS > __thread > #endif > #if defined(HAVE_CC_TLS) && !defined (USE_EMUTLS) > __thread > #endif ... seems plausible, will try it on my next build cycle. BTW, I wonder what it would take to make it work with emutls?