gcc/libstdc++-v3/config/os
Benjamin Kosnik f83295bafc re PR libstdc++/12658 (Thread safety problems in locale::global() and locale::locale())
2004-03-06  Benjamin Kosnik  <bkoz@redhat.com>

	PR libstdc++/12658
	* src/locale_init.cc (locale::locale): Lock critical regions with
	external mutexes.
	(locale::global): Same.
	* include/bits/concurrence.h (__glibcxx_mutex_define_initialized):
	Add in once bits for cases without __GTHREAD_MUTEX_INIT.
	(__glibcxx_mutex_lock): Same.

	* config/cpu/generic/atomicity.h: Remove
	_GLIBCXX_NEED_GENERIC_MUTEX, use concurrence.h.
	* src/misc-inst.cc: Move all locking bits out of this file.

	* config/os/hpux/os_defines.h: Remove _GLIBCXX_INST_ATOMICITY_LOCK.
	* src/misc-inst.cc: Same.
	* config/cpu/hppa/atomicity.h: Same.

	* config/linker-map.gnu: Remove types in the signature of atomic
	exports, as they may vary.

From-SVN: r79043
2004-03-07 01:32:43 +00:00
..
aix atomicity.h: Use __gnu_cxx namespace. 2004-02-27 13:59:31 -05:00
bsd ctype_noninline.h, [...] (ctype): Initialize _M_narrow, _M_widen. 2003-12-16 01:57:03 +00:00
djgpp ctype_noninline.h, [...] (ctype): Initialize _M_narrow, _M_widen. 2003-12-16 01:57:03 +00:00
generic ctype_noninline.h, [...] (ctype): Initialize _M_narrow, _M_widen. 2003-12-16 01:57:03 +00:00
gnu-linux ctype_noninline.h, [...] (ctype): Initialize _M_narrow, _M_widen. 2003-12-16 01:57:03 +00:00
hpux re PR libstdc++/12658 (Thread safety problems in locale::global() and locale::locale()) 2004-03-07 01:32:43 +00:00
irix atomicity.h: Include c++config.h to get defines. 2004-02-27 20:56:46 +00:00
mingw32 ctype_noninline.h, [...] (ctype): Initialize _M_narrow, _M_widen. 2003-12-16 01:57:03 +00:00
newlib ctype_noninline.h, [...] (ctype): Initialize _M_narrow, _M_widen. 2003-12-16 01:57:03 +00:00
qnx/qnx6.1 ctype_noninline.h, [...] (ctype): Initialize _M_narrow, _M_widen. 2003-12-16 01:57:03 +00:00
solaris ctype_noninline.h, [...] (ctype): Initialize _M_narrow, _M_widen. 2003-12-16 01:57:03 +00:00
tpf configure.host: Add support for *-tpf. 2004-01-27 15:36:22 +00:00
vxworks ctype_noninline.h, [...] (ctype): Initialize _M_narrow, _M_widen. 2003-12-16 01:57:03 +00:00
windiss ctype_noninline.h, [...] (ctype): Initialize _M_narrow, _M_widen. 2003-12-16 01:57:03 +00:00