This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH, testsuite]: Synchronize dg-options in {gcc,g++}.dg/compat/struct-layout-1_generate.c
- From: Uros Bizjak <ubizjak at gmail dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 13 Nov 2008 19:34:36 +0100
- Subject: [PATCH, testsuite]: Synchronize dg-options in {gcc,g++}.dg/compat/struct-layout-1_generate.c
Hello!
This patch synchronizes dg-options array in
{gcc,g++}.dg/compat/struct-layout-1_generate.c.
The patch fixes at least
Running target unix
FAIL: tmpdir-gcc.dg-struct-layout-1/t027
c_compat_x_tst.o-c_compat_y_tst.o execute
2008-11-13 Uros Bizjak <ubizjak@gmail.com>
* gcc.dg/compat/struct-layout-1_generate.c (dg-options): Add -mno-mmx
for i?86-*-* and x86_64-*-* targets
* g++.dg/compat/struct-layout-1_generate.c (dg-options): Add
-fno-common for *-*-darwin* *-*-mingw32* *-*-cygwin* targets.
Patch was tested on x86_64-pc-linux-gnu {,-m32}, committed to mainline
as obvious.
Uros.
Index: g++.dg/compat/struct-layout-1_generate.c
===================================================================
--- g++.dg/compat/struct-layout-1_generate.c (revision 141824)
+++ g++.dg/compat/struct-layout-1_generate.c (working copy)
@@ -45,7 +45,7 @@ along with GCC; see the file COPYING3.
const char *dg_options[] = {
"/* { dg-options \"%s-I%s\" } */\n",
"/* { dg-options \"%s-I%s -mno-mmx\" { target i?86-*-* x86_64-*-* } } */\n",
-"/* { dg-options \"%s-I%s -fno-common\" { target hppa*-*-hpux* } } */\n",
+"/* { dg-options \"%s-I%s -fno-common\" { target hppa*-*-hpux* *-*-darwin* *-*-mingw32* *-*-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]))
Index: gcc.dg/compat/struct-layout-1_generate.c
===================================================================
--- gcc.dg/compat/struct-layout-1_generate.c (revision 141824)
+++ gcc.dg/compat/struct-layout-1_generate.c (working copy)
@@ -44,6 +44,7 @@ along with GCC; see the file COPYING3.
const char *dg_options[] = {
"/* { dg-options \"%s-I%s\" } */\n",
+"/* { dg-options \"%s-I%s -mno-mmx\" { target i?86-*-* x86_64-*-* } } */\n",
"/* { dg-options \"%s-I%s -fno-common\" { target hppa*-*-hpux* *-*-darwin* *-*-mingw32* *-*-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"