diff options
author | Petur Runolfsson <peturr02@ru.is> | 2003-10-14 04:47:10 +0000 |
---|---|---|
committer | Andreas Tobler <andreast@gcc.gnu.org> | 2003-10-14 06:47:10 +0200 |
commit | 9dccaa6bb6721b80b4c0d51833ba1593799ee867 (patch) | |
tree | 1942808c12dcf58030c8e17ac8ed87021f5873c4 /libstdc++-v3 | |
parent | caa55b1e673f9f1b0990636ecf45fe52ea5261f2 (diff) | |
download | gcc-9dccaa6bb6721b80b4c0d51833ba1593799ee867.zip gcc-9dccaa6bb6721b80b4c0d51833ba1593799ee867.tar.gz gcc-9dccaa6bb6721b80b4c0d51833ba1593799ee867.tar.bz2 |
locale.cc (locale::_S_initialize): Workaround a confusion of the use of the gthr API when...
2003-10-14 Petur Runolfsson <peturr02@ru.is>
Andreas Tobler <a.tobler@schweiz.ch>
* src/locale.cc (locale::_S_initialize): Workaround a confusion
of the use of the gthr API when __gthread_active_p() returns true.
Co-Authored-By: Andreas Tobler <a.tobler@schweiz.ch>
From-SVN: r72458
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/ChangeLog | 6 | ||||
-rw-r--r-- | libstdc++-v3/src/locale.cc | 7 |
2 files changed, 8 insertions, 5 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 5811122..d024c0e 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +2003-10-14 Petur Runolfsson <peturr02@ru.is> + Andreas Tobler <a.tobler@schweiz.ch> + + * src/locale.cc (locale::_S_initialize): Workaround a confusion + of the use of the gthr API when __gthread_active_p() returns true. + 2003-10-12 Petur Runolfsson <peturr02@ru.is> Paolo Carlini <pcarlini@unitus.it> diff --git a/libstdc++-v3/src/locale.cc b/libstdc++-v3/src/locale.cc index f5b3604..baa5a41 100644 --- a/libstdc++-v3/src/locale.cc +++ b/libstdc++-v3/src/locale.cc @@ -395,12 +395,9 @@ namespace std #ifdef __GTHREADS if (__gthread_active_p()) __gthread_once(&_S_once, _S_initialize_once); - else #endif - { - if (!_S_classic) - _S_initialize_once(); - } + if (!_S_classic) + _S_initialize_once(); } void |