re PR target/18482 (mmix-knuth-mmixware testsuite failure: tmpdir-gcc.dg-struct-layout-1)
authorHans-Peter Nilsson <hp@bitrange.com>
Sun, 30 Oct 2005 16:46:41 +0000 (16:46 +0000)
committerHans-Peter Nilsson <hp@gcc.gnu.org>
Sun, 30 Oct 2005 16:46:41 +0000 (16:46 +0000)
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

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/compat/struct-layout-1_generate.c

index 802b4c680db14ab315cacc8a0faeaf5e2f82f100..a8178ab99c5bd48b6d1d177de0e8d80f2d149cd4 100644 (file)
@@ -1,3 +1,9 @@
+2005-10-30  Hans-Peter Nilsson  <hp@bitrange.com>
+
+       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  <coudert@clipper.ens.fr>
 
        PR libfortran/20179
index 3454c62a607ce25b41ec56bdff22b880c1a80307..1fb8f6bec0e7a0ab55a2885eb6dd717fc4b1ee32 100644 (file)
@@ -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");