From: Hans-Peter Nilsson Date: Sun, 30 Oct 2005 16:46:41 +0000 (+0000) Subject: re PR target/18482 (mmix-knuth-mmixware testsuite failure: tmpdir-gcc.dg-struct-layout-1) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6536905d5af309425d872b1a74fe0b0367675ecf;p=gcc.git re PR target/18482 (mmix-knuth-mmixware testsuite failure: tmpdir-gcc.dg-struct-layout-1) PR target/18482 * gcc.dg/compat/struct-layout-1_generate.c (switchfiles, main): For mmix-*-*, pass with dg-options an additional -mno-base-addresses. From-SVN: r106026 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 802b4c680db..a8178ab99c5 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2005-10-30 Hans-Peter Nilsson + + PR target/18482 + * gcc.dg/compat/struct-layout-1_generate.c (switchfiles, main): + For mmix-*-*, pass with dg-options an additional -mno-base-addresses. + 2005-10-30 Francois-Xavier Coudert PR libfortran/20179 diff --git a/gcc/testsuite/gcc.dg/compat/struct-layout-1_generate.c b/gcc/testsuite/gcc.dg/compat/struct-layout-1_generate.c index 3454c62a607..1fb8f6bec0e 100644 --- a/gcc/testsuite/gcc.dg/compat/struct-layout-1_generate.c +++ b/gcc/testsuite/gcc.dg/compat/struct-layout-1_generate.c @@ -696,6 +696,7 @@ switchfiles (int fields) fprintf (outfile, "\ /* { dg-options \"-I%s\" } */\n\ /* { dg-options \"-I%s -fno-common\" { target hppa*-*-hpux* } } */\n\ +/* { dg-options \"-I%s -mno-base-addresses\" { target mmix-*-* } } */\n\ #include \"struct-layout-1.h\"\n\ \n\ #define TX(n, type, attrs, fields, ops) extern void test##n (void);\n\ @@ -713,7 +714,7 @@ int main (void)\n\ abort ();\n\ }\n\ exit (0);\n\ -}\n", srcdir, srcdir, filecnt, filecnt); +}\n", srcdir, srcdir, srcdir, filecnt, filecnt); fclose (outfile); sprintf (destptr, "t%03d_x.c", filecnt); outfile = fopen (destbuf, "w"); @@ -722,10 +723,11 @@ 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\ #include \"struct-layout-1_x1.h\"\n\ #include \"t%03d_test.h\"\n\ #include \"struct-layout-1_x2.h\"\n\ -#include \"t%03d_test.h\"\n", srcdir, srcdir, filecnt, filecnt); +#include \"t%03d_test.h\"\n", srcdir, srcdir, srcdir, filecnt, filecnt); fclose (outfile); sprintf (destptr, "t%03d_y.c", filecnt); outfile = fopen (destbuf, "w"); @@ -734,10 +736,11 @@ 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\ #include \"struct-layout-1_y1.h\"\n\ #include \"t%03d_test.h\"\n\ #include \"struct-layout-1_y2.h\"\n\ -#include \"t%03d_test.h\"\n", srcdir, srcdir, filecnt, filecnt); +#include \"t%03d_test.h\"\n", srcdir, srcdir, srcdir, filecnt, filecnt); fclose (outfile); sprintf (destptr, "t%03d_test.h", filecnt); outfile = fopen (destbuf, "w");