This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/36801] config/cpu/generic/atomicity_mutex/atomicity.h incorrectly relies on global constructor ordering
- From: "bkoz at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Jan 2009 03:56:45 -0000
- Subject: [Bug libstdc++/36801] config/cpu/generic/atomicity_mutex/atomicity.h incorrectly relies on global constructor ordering
- References: <bug-36801-8116@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #11 from bkoz at gcc dot gnu dot org 2009-01-07 03:56 -------
Created an attachment (id=17042)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17042&action=view)
patch version 2
Hey! Sorry about the delay on this. Please try the attached patch, and let me
know if it works for you.
This appears to be another manifestation of 29118.
I've audited the mutex usage in libstc++ sources and it looks like similar
patches may be necessary for:
mt_allocator.cc: freelist_mutex
pool_allocator.cc: palloc_init_mutex
mutex.cc: __once_mutex
locale.cc: locale_cache_mutex
debug.cc: safe_base_mutex
atomic.cc: atomic_mutex
That will be a follow-up patch.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36801