From 907c6efdbc255042ab1ece9179511b78f426cb00 Mon Sep 17 00:00:00 2001 From: Dave Korn Date: Thu, 21 Jan 2010 04:56:38 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 6 ++++++ gcc/config/i386/cygwin.h | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4ec8ee68706..8b18dbd4c32 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2010-01-21 Dave Korn + + 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 PR debug/42715 diff --git a/gcc/config/i386/cygwin.h b/gcc/config/i386/cygwin.h index 86eff635ae6..0a395c64ecc 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)