]> granicus.if.org Git - gc/commitdiff
2006-07-08 Hans Boehm <Hans.Boehm@hp.com>
authorhboehm <hboehm>
Sun, 9 Jul 2006 05:45:17 +0000 (05:45 +0000)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 26 Jul 2011 17:06:38 +0000 (21:06 +0400)
* thread_local_alloc.h: Define USE_COMPILER_TLS on Linux only for
gcc versions that support __thread.

include/private/thread_local_alloc.h

index 3f126d579ec9327b5ebcd35c67f22210bc207fbb..dfe9d756d4eb03d66c42e3f062a7d960417049e4 100644 (file)
@@ -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)) || \