From eb247ac377623d2a722aab1e6eae7adab5f7ebea Mon Sep 17 00:00:00 2001 From: M Joonas Pihlaja Date: Fri, 9 Jul 2010 12:09:07 +0300 Subject: Don't trust OpenBSD's gcc to produce working code for __thread. The gcc on OpenBSD 4.5 to 4.7 at least produces bad code for __thread, without as much as a warning. See PR #6410 "Using __thread TLS variables compiles ok but segfault at runtime." http://cvs.openbsd.org/cgi-bin/query-pr-wrapper?full=yes&numbers=6410 --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configure.ac b/configure.ac index b9488d92..3c6f01d5 100644 --- a/configure.ac +++ b/configure.ac @@ -531,6 +531,9 @@ AC_LINK_IFELSE([ #ifdef __MINGW32__ #error MinGW has broken __thread support #endif +#ifdef __OpenBSD__ +#error OpenBSD has broken __thread support +#endif static __thread int x ; int main () { x = 123; return x; } ], support_for__thread=yes) -- cgit v1.2.3