diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-06-27 23:51:33 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-06-27 23:51:33 +0000 |
commit | 08c1e8a2c2788f06992e8a92d8384c094f5bc35d (patch) | |
tree | d2802780a621ddd822ecec7c1894042afe32f8d0 /libstdc++ | |
parent | fe7e2223a87a10fce9c9a607f016b24685a4e6bf (diff) | |
download | gcc-08c1e8a2c2788f06992e8a92d8384c094f5bc35d.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20775 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++')
-rw-r--r-- | libstdc++/stl/ChangeLog | 5 | ||||
-rw-r--r-- | libstdc++/stl/stl_config.h | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/libstdc++/stl/ChangeLog b/libstdc++/stl/ChangeLog index 4afbb7105d0..82cdfe39804 100644 --- a/libstdc++/stl/ChangeLog +++ b/libstdc++/stl/ChangeLog @@ -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 diff --git a/libstdc++/stl/stl_config.h b/libstdc++/stl/stl_config.h index ff730289897..02a1f887174 100644 --- a/libstdc++/stl/stl_config.h +++ b/libstdc++/stl/stl_config.h @@ -114,7 +114,9 @@ # 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 |