diff options
author | Zhou Drangon <drangon.mail@gmail.com> | 2007-10-09 21:24:31 +0000 |
---|---|---|
committer | Benjamin Kosnik <bkoz@gcc.gnu.org> | 2007-10-09 21:24:31 +0000 |
commit | 3c8b6c602eac0271355e27d27f98894e73bbcef6 (patch) | |
tree | cb6824c9f636e97db1ba7653ac14cd638dc04c5a | |
parent | dfbed397860edaeb0116956cc3cdf9d9f60cff3d (diff) | |
download | gcc-3c8b6c602eac0271355e27d27f98894e73bbcef6.zip gcc-3c8b6c602eac0271355e27d27f98894e73bbcef6.tar.gz gcc-3c8b6c602eac0271355e27d27f98894e73bbcef6.tar.bz2 |
re PR libstdc++/33682 (libstdc++ broken for !__GTHREAD_HAS_COND hosts)
2007-10-09 Zhou Drangon <drangon.mail@gmail.com>
PR libstdc++/33682
* libsupc++/guard.cc: Make single conditional variable
implementation dependent to __GTHREAD_HAS_COND.
From-SVN: r129181
-rw-r--r-- | libstdc++-v3/ChangeLog | 6 | ||||
-rw-r--r-- | libstdc++-v3/libsupc++/guard.cc | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index f851d39..a36232f 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +2007-10-09 Zhou Drangon <drangon.mail@gmail.com> + + PR libstdc++/33682 + * libsupc++/guard.cc: Make single conditional variable + implementation dependent to __GTHREAD_HAS_COND. + 2007-10-09 Benjamin Kosnik <bkoz@montsouris.artheist.org> PR libstdc++/33489 continued. diff --git a/libstdc++-v3/libsupc++/guard.cc b/libstdc++-v3/libsupc++/guard.cc index b714aec..dca37f1 100644 --- a/libstdc++-v3/libsupc++/guard.cc +++ b/libstdc++-v3/libsupc++/guard.cc @@ -62,6 +62,7 @@ namespace } } +#ifdef __GTHREAD_HAS_COND namespace { // A single conditional variable controlling all static initializations. @@ -83,6 +84,7 @@ namespace return *static_cond; } } +#endif #ifndef _GLIBCXX_GUARD_TEST_AND_ACQUIRE inline bool |