http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45693
--- Comment #5 from Iain Sandoe <iains at gcc dot gnu.org> 2010-09-27 18:34:46 UTC --- (In reply to comment #4) > (In reply to comment #3) > > But that support was present before, and still GCC_CHECK_TLS didn't > > detect it before Iain's patch. Something is certainly fishy here... > > His patch was explicitly to fix checking for TLS when emulated TLS was used. > Sometimes it would detect it as working and other times it would not. As I recall, the patch was to circumvent a race condition - which manifest most frequently in the decision as to whether libgomp used TLS or not. It's odd that after this time a problem should show in libstdc++ (which was never, AFAIR flagged up in the original problem series). As for a platform with TLS - Darwin is regularly testing libstdc++ on powepc, and x86 .. so there must be some corner case at work.