gcc/libstdc++-v3/config/cpu
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
..
alpha atomicity.h: New, forward declarations for __atomic_add and __exchange_and_add. 2004-02-27 00:49:50 +00:00
cris atomicity.h: New, forward declarations for __atomic_add and __exchange_and_add. 2004-02-27 00:49:50 +00:00
generic re PR libstdc++/12658 (Thread safety problems in locale::global() and locale::locale()) 2004-03-07 01:32:43 +00:00
hppa re PR libstdc++/12658 (Thread safety problems in locale::global() and locale::locale()) 2004-03-07 01:32:43 +00:00
i386 atomicity.h: Include c++config.h to get defines. 2004-02-27 20:56:46 +00:00
i486 atomicity.h: New, forward declarations for __atomic_add and __exchange_and_add. 2004-02-27 00:49:50 +00:00
ia64 atomicity.h: New, forward declarations for __atomic_add and __exchange_and_add. 2004-02-27 00:49:50 +00:00
m68k atomicity.h: Include c++config.h to get defines. 2004-02-27 20:56:46 +00:00
mips atomicity.h: New, forward declarations for __atomic_add and __exchange_and_add. 2004-02-27 00:49:50 +00:00
powerpc atomicity.h: New, forward declarations for __atomic_add and __exchange_and_add. 2004-02-27 00:49:50 +00:00
s390 atomicity.h: New, forward declarations for __atomic_add and __exchange_and_add. 2004-02-27 00:49:50 +00:00
sparc atomicity.h: Include c++config.h to get defines. 2004-02-27 20:56:46 +00:00