This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] libstdc++/69506 Fix Cygwin bootstrap error due to TM symbols
- From: Jonathan Wakely <jwakely at redhat dot com>
- To: libstdc++ at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Fri, 29 Jan 2016 10:53:25 +0000
- Subject: [patch] libstdc++/69506 Fix Cygwin bootstrap error due to TM symbols
- Authentication-results: sourceware.org; auth=none
Another target that doesn't have the necessary weak ref support for
the TM-aware exception-handling.
Bootrapped successfully by the reporter, committed to trunk.
commit b7e2e38ab1d938ee19280eba11ed3643a140f86d
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Fri Jan 29 10:38:45 2016 +0000
Fix Cygwin bootstrap error due to TM symbols
PR libstdc++/69506
* config/os/newlib/os_defines.h (_GLIBCXX_USE_WEAK_REF): Define.
diff --git a/libstdc++-v3/config/os/newlib/os_defines.h b/libstdc++-v3/config/os/newlib/os_defines.h
index 4a09dd1..2a87e74 100644
--- a/libstdc++-v3/config/os/newlib/os_defines.h
+++ b/libstdc++-v3/config/os/newlib/os_defines.h
@@ -53,6 +53,9 @@
// their dtors are called
#define _GLIBCXX_THREAD_ATEXIT_WIN32 1
+// See libstdc++/69506
+#define _GLIBCXX_USE_WEAK_REF 0
+
#endif
#endif