aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorDave Korn <dave.korn.cygwin@gmail.com>2010-01-21 04:56:38 +0000
committerDave Korn <davek@gcc.gnu.org>2010-01-21 04:56:38 +0000
commit907c6efdbc255042ab1ece9179511b78f426cb00 (patch)
tree4ef62e39569a09e97e8a7321f1c947a1eeffb012 /gcc
parentd8fe889592a0d0f57ce656fd11fcea2f79388cdc (diff)
downloadgcc-907c6efdbc255042ab1ece9179511b78f426cb00.zip
gcc-907c6efdbc255042ab1ece9179511b78f426cb00.tar.gz
gcc-907c6efdbc255042ab1ece9179511b78f426cb00.tar.bz2
re PR target/42818 (Static C++ linking breakage "undefined reference to ___real__Znwj" and others in libcygwin.a(_cygwin_crt0_common.o))
PR target/42818 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers, even when linking statically, for now. From-SVN: r156105
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/i386/cygwin.h4
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 4ec8ee6..8b18dbd 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
+
+ PR target/42818
+ * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
+ even when linking statically, for now.
+
2010-01-20 Alexandre Oliva <aoliva@redhat.com>
PR debug/42715
diff --git a/gcc/config/i386/cygwin.h b/gcc/config/i386/cygwin.h
index 86eff63..0a395c6 100644
--- a/gcc/config/i386/cygwin.h
+++ b/gcc/config/i386/cygwin.h
@@ -87,7 +87,7 @@ along with GCC; see the file COPYING3. If not see
/* To implement C++ function replacement we always wrap the cxx
malloc-like operators. See N2800 #17.6.4.6 [replacement.functions] */
-#define CXX_WRAP_SPEC_LIST "%{!static: %{!static-libstdc++: \
+#define CXX_WRAP_SPEC_LIST " \
--wrap _Znwj \
--wrap _Znaj \
--wrap _ZdlPv \
@@ -96,7 +96,7 @@ along with GCC; see the file COPYING3. If not see
--wrap _ZnajRKSt9nothrow_t \
--wrap _ZdlPvRKSt9nothrow_t \
--wrap _ZdaPvRKSt9nothrow_t \
- }}"
+"
#if defined (USE_CYGWIN_LIBSTDCXX_WRAPPERS)