This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Fix gcc.dg/compat/struct-layout-1_generate.c on mmix-*-*
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Hans-Peter Nilsson <hp at bitrange dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 28 Nov 2005 14:15:34 -0500
- Subject: [PATCH] Fix gcc.dg/compat/struct-layout-1_generate.c on mmix-*-*
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
Hi!
To fix PR18482 you added mmix-*-* specific dg-options, but while those
options were just -I%s for the main file, they also were using -w
for the other files (to avoid warnings about truncating constants, as
that's expected and desirable in those tests).
Was that omission intentional?
2005-11-28 Jakub Jelinek <jakub@redhat.com>
* gcc.dg/compat/struct-layout-1_generate.c: Add -w option
on mmix-*-* for *_[xy].c.
--- gcc/testsuite/gcc.dg/compat/struct-layout-1_generate.c.jj 2005-11-01 06:14:21.000000000 +0100
+++ gcc/testsuite/gcc.dg/compat/struct-layout-1_generate.c 2005-11-28 20:08:22.000000000 +0100
@@ -723,7 +723,7 @@ int main (void)\n\
fprintf (outfile, "\
/* { dg-options \"-w -I%s\" } */\n\
/* { dg-options \"-w -I%s -fno-common\" { target hppa*-*-hpux* } } */\n\
-/* { dg-options \"-I%s -mno-base-addresses\" { target mmix-*-* } } */\n\
+/* { dg-options \"-w -I%s -mno-base-addresses\" { target mmix-*-* } } */\n\
#include \"struct-layout-1_x1.h\"\n\
#include \"t%03d_test.h\"\n\
#include \"struct-layout-1_x2.h\"\n\
@@ -736,7 +736,7 @@ int main (void)\n\
fprintf (outfile, "\
/* { dg-options \"-w -I%s\" } */\n\
/* { dg-options \"-w -I%s -fno-common\" { target hppa*-*-hpux* } } */\n\
-/* { dg-options \"-I%s -mno-base-addresses\" { target mmix-*-* } } */\n\
+/* { dg-options \"-w -I%s -mno-base-addresses\" { target mmix-*-* } } */\n\
#include \"struct-layout-1_y1.h\"\n\
#include \"t%03d_test.h\"\n\
#include \"struct-layout-1_y2.h\"\n\
Jakub
[A