* [patch libstdc++]: Fix PR/59807
@ 2014-10-14 13:07 Kai Tietz
0 siblings, 0 replies; only message in thread
From: Kai Tietz @ 2014-10-14 13:07 UTC (permalink / raw)
To: GCC Patches
Hi,
this patch fixes issue PR/59807 "mutex misses destructor if
non-function call initialization is used". This issue just got
reported for mingw-w64, as this is the only venture providing
posix-threading enabled toolchains (C++11). Nevertheless this issue
could happen for other native Windows toolchains, too. Therefore I
adjusted the default mingw32-case, too.
ChangeLog
2014-10-14 Kai Tietz <ktietz@redhat.com>
PR libstdc++/59807
* config/os/mingw32/os_defines.h (_GTHREAD_USE_MUTEX_INIT_FUNC):
Define to avoid leak.
* config/os/mingw32-w64/os_defines.h: Likewise.
I am just testing bootstrap for it, and if successful, I will commit.
Thanks,
Kai
Index: config/os/mingw32/os_defines.h
===================================================================
--- config/os/mingw32/os_defines.h (Revision 216199)
+++ config/os/mingw32/os_defines.h (Arbeitskopie)
@@ -75,4 +75,7 @@
#define _GLIBCXX_LLP64 1
#endif
+// See libstdc++/59807
+#define _GTHREAD_USE_MUTEX_INIT_FUNC 1
+
#endif
Index: config/os/mingw32-w64/os_defines.h
===================================================================
--- config/os/mingw32-w64/os_defines.h (Revision 216199)
+++ config/os/mingw32-w64/os_defines.h (Arbeitskopie)
@@ -83,4 +83,7 @@
// their dtors are called
#define _GLIBCXX_THREAD_ATEXIT_WIN32 1
+// See libstdc++/59807
+#define _GTHREAD_USE_MUTEX_INIT_FUNC 1
+
#endif
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-10-14 13:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-14 13:07 [patch libstdc++]: Fix PR/59807 Kai Tietz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).