stl_config.h (__STL_PTHREADS): Don't define for glibc 2 if _G_USING_THUNKS is not...
authorJeffrey A Law <law@cygnus.com>
Sat, 27 Jun 1998 23:51:33 +0000 (23:51 +0000)
committerJeff Law <law@gcc.gnu.org>
Sat, 27 Jun 1998 23:51:33 +0000 (17:51 -0600)
        * stl_config.h (__STL_PTHREADS): Don't define for glibc 2 if
        _G_USING_THUNKS is not defined.
Bring over from egcs-1.0.3 branch since ppc-linux still uses glibc-1.9x.

From-SVN: r20775

libstdc++/stl/ChangeLog
libstdc++/stl/stl_config.h

index 4afbb7105d02354e463fbd4981503a91e0f6f4af..82cdfe398044c08a82d9405ce706c66160fdec4e 100644 (file)
@@ -1,3 +1,8 @@
+Sun Jun 28 00:49:42 1998  Jeffrey A Law  (law@cygnus.com)
+
+       * stl_config.h (__STL_PTHREADS): Don't define for glibc 2 if
+       _G_USING_THUNKS is not defined.
+
 1998-04-07 18:32  Ulrich Drepper  <drepper@cygnus.com>
 
        * stl_hashtable.h (__stl_prime_list): Mark last two numbers as
index ff73028989748c5f35ecf0a3f865e43ad1b2fdd5..02a1f887174d15ae0e1ff21a7eb7f5700a696611 100644 (file)
 #     define __STL_EXPLICIT_FUNCTION_TMPL_ARGS
 #     define __STL_MEMBER_TEMPLATES
 #   endif
-#   if !defined(_NOTHREADS) && __GLIBC__ >= 2
+    /* glibc pre 2.0 is very buggy. We have to disable thread for it.
+       It should be upgraded to glibc 2.0 or later. */
+#   if !defined(_NOTHREADS) && __GLIBC__ >= 2 && defined(_G_USING_THUNKS)
 #     define __STL_PTHREADS
 #   endif
 #   ifdef __EXCEPTIONS