diff options
author | Benjamin Kosnik <bkoz@redhat.com> | 2006-10-09 10:34:49 +0000 |
---|---|---|
committer | Benjamin Kosnik <bkoz@gcc.gnu.org> | 2006-10-09 10:34:49 +0000 |
commit | a145e9b64fcc52b1c5274f92140c2571d0ced500 (patch) | |
tree | 20c54de986435c2c754a2d14e84eea8a63c456b1 /libstdc++-v3 | |
parent | 8d2c290502dd44050e76cb1d9bf83279c18bfe65 (diff) | |
download | gcc-a145e9b64fcc52b1c5274f92140c2571d0ced500.zip gcc-a145e9b64fcc52b1c5274f92140c2571d0ced500.tar.gz gcc-a145e9b64fcc52b1c5274f92140c2571d0ced500.tar.bz2 |
globals_io.cc (_GLIBCXX_once): Remove, unused.
2006-10-09 Benjamin Kosnik <bkoz@redhat.com>
* src/globals_io.cc (_GLIBCXX_once): Remove, unused.
(_GLIBCXX_mutex): Same.
(_GLIBCXX_mutex_addres): Same.
(_GLIBCXX_mutex_init): Same.
(_GLIBCXX_mutex_address_init): Same.
From-SVN: r117570
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/ChangeLog | 8 | ||||
-rw-r--r-- | libstdc++-v3/src/globals_io.cc | 21 |
2 files changed, 8 insertions, 21 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 9c5b039..e0d5c0e 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,11 @@ +2006-10-09 Benjamin Kosnik <bkoz@redhat.com> + + * src/globals_io.cc (_GLIBCXX_once): Remove, unused. + (_GLIBCXX_mutex): Same. + (_GLIBCXX_mutex_addres): Same. + (_GLIBCXX_mutex_init): Same. + (_GLIBCXX_mutex_address_init): Same. + 2006-10-07 Paolo Carlini <pcarlini@suse.de> PR libstdc++/28277 (partial: money_get bits) diff --git a/libstdc++-v3/src/globals_io.cc b/libstdc++-v3/src/globals_io.cc index 9c02899..3d67cf5 100644 --- a/libstdc++-v3/src/globals_io.cc +++ b/libstdc++-v3/src/globals_io.cc @@ -27,7 +27,6 @@ // the GNU General Public License. #include "bits/c++config.h" -#include "bits/gthr.h" #include <fstream> #include <istream> #include <ostream> @@ -108,24 +107,4 @@ namespace __gnu_internal _GLIBCXX_VISIBILITY(hidden) fake_wfilebuf buf_wcin; fake_wfilebuf buf_wcerr; #endif - - // Globals for once-only runtime initialization of mutex objects. This - // allows static initialization of these objects on systems that need a - // function call to initialize a mutex. For example, see stl_threads.h. -#ifdef __GTHREAD_MUTEX_INIT -#elif defined(__GTHREAD_MUTEX_INIT_FUNCTION) - __gthread_once_t _GLIBCXX_once = __GTHREAD_ONCE_INIT; - __gthread_mutex_t _GLIBCXX_mutex; - __gthread_mutex_t *_GLIBCXX_mutex_address; - - // Once-only initializer function for _GLIBCXX_mutex. - void - _GLIBCXX_mutex_init () - { __GTHREAD_MUTEX_INIT_FUNCTION (&_GLIBCXX_mutex); } - - // Once-only initializer function for _GLIBCXX_mutex_address. - void - _GLIBCXX_mutex_address_init () - { __GTHREAD_MUTEX_INIT_FUNCTION (_GLIBCXX_mutex_address); } -#endif } // namespace __gnu_internal |