From abfb38d73910f62fa6785c0f0d04462a5aefd142 Mon Sep 17 00:00:00 2001 From: Dave Korn Date: Thu, 1 Apr 2010 20:24:35 +0000 Subject: [PATCH] re PR target/42609 (undesired operation when working with mno-cygwin) PR target/42609 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin. From-SVN: r157931 --- gcc/ChangeLog | 5 +++++ gcc/config/i386/cygwin.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 80c62a41288..6bd278633e6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2010-04-01 Dave Korn + + PR target/42609 + * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin. + 2010-04-01 Jakub Jelinek * dwarf2out.c (output_compilation_unit_header): For diff --git a/gcc/config/i386/cygwin.h b/gcc/config/i386/cygwin.h index 0a395c64ecc..bb43d4fb11e 100644 --- a/gcc/config/i386/cygwin.h +++ b/gcc/config/i386/cygwin.h @@ -108,7 +108,7 @@ along with GCC; see the file COPYING3. If not see #define CXX_WRAP_SPEC_OPT "muse-libstdc-wrappers" #endif -#define CXX_WRAP_SPEC "%{" CXX_WRAP_SPEC_OPT ":" CXX_WRAP_SPEC_LIST "}" +#define CXX_WRAP_SPEC "%{!mno-cygwin:%{" CXX_WRAP_SPEC_OPT ":" CXX_WRAP_SPEC_LIST "}}" #else /* !defined (USE_CYGWIN_LIBSTDCXX_WRAPPERS) */