This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Fix g++.dg/compat/struct-layout-1_generate.c options for Windows targets
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: cgf at gcc dot gnu dot org, ktietz at redhat dot com, dave dot korn dot cygwin at gmail dot com, ro at CeBiTec dot Uni-Bielefeld dot DE, mikestump at comcast dot net
- Date: Wed, 19 Oct 2011 18:58:50 +0000 (UTC)
- Subject: Fix g++.dg/compat/struct-layout-1_generate.c options for Windows targets
g++.dg/compat/struct-layout-1_generate.c generates a dg-options line
using -mno-mmx -Wno-abi for i?86-*-* x86_64-*-* - and one using
-fno-common, which takes precedence, for alpha*-dec-osf* hppa*-*-hpux*
powerpc*-*-darwin* *-*-mingw32* *-*-cygwin*. But at least
i686-mingw32 still needs the -Wno-abi option. This patch adds the
Windows targets to the case for i?86-*-darwin* x86_64-*-darwin* which
already passes both sets of options.
Tested for cross to i686-mingw32. OK to commit?
2011-10-19 Joseph Myers <joseph@codesourcery.com>
* g++.dg/compat/struct-layout-1_generate.c: Also pass -mno-mmx
-Wno-abi for i?86-*-mingw32* x86_64-*-mingw32* i?86-*-cygwin*.
Index: gcc/testsuite/g++.dg/compat/struct-layout-1_generate.c
===================================================================
--- gcc/testsuite/g++.dg/compat/struct-layout-1_generate.c (revision 180200)
+++ gcc/testsuite/g++.dg/compat/struct-layout-1_generate.c (working copy)
@@ -47,7 +47,7 @@
"/* { dg-options \"%s-I%s\" } */\n",
"/* { dg-options \"%s-I%s -mno-mmx -Wno-abi\" { target i?86-*-* x86_64-*-* } } */\n",
"/* { dg-options \"%s-I%s -fno-common\" { target alpha*-dec-osf* hppa*-*-hpux* powerpc*-*-darwin* *-*-mingw32* *-*-cygwin* } } */\n",
-"/* { dg-options \"%s-I%s -mno-mmx -fno-common -Wno-abi\" { target i?86-*-darwin* x86_64-*-darwin* } } */\n",
+"/* { dg-options \"%s-I%s -mno-mmx -fno-common -Wno-abi\" { target i?86-*-darwin* x86_64-*-darwin* i?86-*-mingw32* x86_64-*-mingw32* i?86-*-cygwin* } } */\n",
"/* { dg-options \"%s-I%s -mno-base-addresses\" { target mmix-*-* } } */\n",
"/* { dg-options \"%s-I%s -mlongcalls -mtext-section-literals\" { target xtensa*-*-* } } */\n"
#define NDG_OPTIONS (sizeof (dg_options) / sizeof (dg_options[0]))
--
Joseph S. Myers
joseph@codesourcery.com