aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@bitrange.com>2005-10-30 16:46:41 +0000
committerHans-Peter Nilsson <hp@gcc.gnu.org>2005-10-30 16:46:41 +0000
commit6536905d5af309425d872b1a74fe0b0367675ecf (patch)
tree1d82e4b23a641176d85f3b88a342088d4bf1d22b /gcc
parent159840cb8aef55bf2f4068f109ad6f987f31abeb (diff)
downloadgcc-6536905d5af309425d872b1a74fe0b0367675ecf.zip
gcc-6536905d5af309425d872b1a74fe0b0367675ecf.tar.gz
gcc-6536905d5af309425d872b1a74fe0b0367675ecf.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog6
-rw-r--r--gcc/testsuite/gcc.dg/compat/struct-layout-1_generate.c9
2 files changed, 12 insertions, 3 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 802b4c6..a8178ab 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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
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 3454c62..1fb8f6b 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");