On 1 July 2013 15:25, Peter Maydell <peter.mayd...@linaro.org> wrote: > Does any OS have a __thread which compiles but is broken, or can > we just have a configure test for this? That would let MacOSX+clang > use __thread.
I believe this was recently the case on NetBSD - code with __thread would build, but fail at run time. I think this applies to NetBSD 5.0 and earlier, but I see that TLS support is listed in the 6.0 release notes. So perhaps a __thread configure test with an override for the known-failing case(s).