From: hboehm Date: Sun, 9 Jul 2006 05:45:17 +0000 (+0000) Subject: 2006-07-08 Hans Boehm X-Git-Tag: gc7_0alpha7~17 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ef51ce5a86a59a65337fe4fba0f17cbc1776352c;p=gc 2006-07-08 Hans Boehm * thread_local_alloc.h: Define USE_COMPILER_TLS on Linux only for gcc versions that support __thread. --- diff --git a/include/private/thread_local_alloc.h b/include/private/thread_local_alloc.h index 3f126d57..dfe9d756 100644 --- a/include/private/thread_local_alloc.h +++ b/include/private/thread_local_alloc.h @@ -39,7 +39,8 @@ # else # define USE_WIN32_COMPILER_TLS # endif /* !GNU */ -# elif defined(LINUX) && defined(__GNUC__) +# elif defined(LINUX) && \ + (__GNUC__ > 3 || (__GNUC == 3 && __GNUC_MINOR__ >=3)) # define USE_COMPILER_TLS # elif (defined(GC_DGUX386_THREADS) || defined(GC_OSF1_THREADS) || \ defined(GC_DARWIN_THREADS) || defined(GC_AIX_THREADS)) || \