aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Smith <dannysmith@users.sourceforge.net>2004-12-16 19:56:12 +0000
committerDanny Smith <dannysmith@gcc.gnu.org>2004-12-16 19:56:12 +0000
commit59b1a766fb697329a64202089365375c042f9c40 (patch)
tree05489088487fbdeb7e4720a148089608dad0bf2e
parent669f01d83afef2e7cc7088df24886c8ec1a9c234 (diff)
downloadgcc-59b1a766fb697329a64202089365375c042f9c40.zip
gcc-59b1a766fb697329a64202089365375c042f9c40.tar.gz
gcc-59b1a766fb697329a64202089365375c042f9c40.tar.bz2
re PR target/18997 (Segmentation Violation in pthread_getspecific)
gcc PR target/18997 * config/i386/cygwin.h (GTHREAD_USE_WEAK): Define to 0. libstdc++-v3 PR target/18997 * config/os/newlib/os_defines.h (_GLIBCXX_GTHREAD_USE_WEAK): Define to 0 for __CYGWIN__. From-SVN: r92281
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/i386/cygwin.h4
-rw-r--r--libstdc++-v3/ChangeLog6
-rw-r--r--libstdc++-v3/config/os/newlib/os_defines.h4
4 files changed, 19 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 24d534b..c5426ab 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2004-12-16 Danny Smith <dannysmith@users.sourceforge.net>
+
+ PR target/18997
+ * config/i386/cygwin.h (GTHREAD_USE_WEAK): Define to 0.
+
2004-12-16 Richard Henderson <rth@redhat.com>
Aldy Hernandez <aldyh@redhat.com>
diff --git a/gcc/config/i386/cygwin.h b/gcc/config/i386/cygwin.h
index def39f4..96b4692 100644
--- a/gcc/config/i386/cygwin.h
+++ b/gcc/config/i386/cygwin.h
@@ -228,3 +228,7 @@ do \
} \
while (0)
#endif
+
+/* Binutils does not handle weak symbols from dlls correctly. For now,
+ do not use them unnecessarily in gthr-posix.h. */
+#define GTHREAD_USE_WEAK 0
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 17a134f..542a82f 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,9 @@
+2004-12-16 Danny Smith <dannysmith@users.sourceforge.net>
+
+ PR target/18997
+ * config/os/newlib/os_defines.h (_GLIBCXX_GTHREAD_USE_WEAK):
+ Define to 0 for __CYGWIN__.
+
2004-12-16 Paolo Carlini <pcarlini@suse.de>
* include/tr1/type_traits: Implement add_const, add_volatile,
diff --git a/libstdc++-v3/config/os/newlib/os_defines.h b/libstdc++-v3/config/os/newlib/os_defines.h
index 3b19787..ff33461 100644
--- a/libstdc++-v3/config/os/newlib/os_defines.h
+++ b/libstdc++-v3/config/os/newlib/os_defines.h
@@ -33,4 +33,8 @@
// System-specific #define, typedefs, corrections, etc, go here. This
// file will come before all others.
+#ifdef __CYGWIN__
+#define _GLIBCXX_GTHREAD_USE_WEAK 0
+#endif
+
#endif