http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58127
--- Comment #6 from Iain Sandoe <iains at gcc dot gnu.org> --- (In reply to Iain Sandoe from comment #5) > (In reply to Jan Hubicka from comment #4) > > The secret plan was to not use TLS for emutls. that's kind of a pity, since IIRC one of the main reasons for recasting the emutls implementation as a separate pass was to allow for uses like this; but, having said that, probably not a high priority. > > There seems to be macro USE_EMUTLS specifying if we have real TLS or emuTLS. <snip> > ... seems plausible, will try it on my next build cycle. #if defined(HAVE_CC_TLS) && !defined (USE_EMUTLS) does, indeed, work.