Don't use __thread on MinGW.
authorSøren Sandmann Pedersen <ssp@redhat.com>
Fri, 23 Apr 2010 16:34:19 +0000 (12:34 -0400)
committerSøren Sandmann Pedersen <ssp@redhat.com>
Mon, 3 May 2010 08:12:24 +0000 (11:12 +0300)
It is apparently broken. See this:

http://mingw-users.1079350.n2.nabble.com/gcc-4-4-multi-threaded-exception-handling-thread-specifier-not-working-td3440749.html

We'll need to support thread local storage on MinGW32 some other way.

Cc: tml@iki.fi
configure.ac

index aabe721..c9d0c66 100644 (file)
@@ -524,6 +524,9 @@ support_for__thread=no
 
 AC_MSG_CHECKING(for __thread)
 AC_COMPILE_IFELSE([
+#ifdef __MINGW32__
+#error MinGW has broken __thread support
+#endif
 __thread int x ;
 int main () { return 0; }
 ], support_for__thread=yes)