summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/compat
diff options
context:
space:
mode:
authorsje <sje@138bc75d-0d04-0410-961f-82ee72b054a4>2004-10-15 17:22:41 +0000
committersje <sje@138bc75d-0d04-0410-961f-82ee72b054a4>2004-10-15 17:22:41 +0000
commita51af15b2dc9503a22d9ab9e8996bcc1ff90897e (patch)
treee9fa390b7f1fe62b602d3c274bb781b4395e2b71 /gcc/testsuite/gcc.dg/compat
parent64e3aa3aa97048523f931e86492e84d2b63f3783 (diff)
downloadgcc-a51af15b2dc9503a22d9ab9e8996bcc1ff90897e.tar.gz
* gcc.dg/compat/struct-layout-1_generate.c (switchfiles): Use
-fno-common when on HPPA HP-UX platforms. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@89107 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/compat')
-rw-r--r--gcc/testsuite/gcc.dg/compat/struct-layout-1_generate.c9
1 files changed, 6 insertions, 3 deletions
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 751d43d1a55..bf40426a63e 100644
--- a/gcc/testsuite/gcc.dg/compat/struct-layout-1_generate.c
+++ b/gcc/testsuite/gcc.dg/compat/struct-layout-1_generate.c
@@ -550,6 +550,7 @@ switchfiles (int fields)
}
fprintf (outfile, "\
/* { dg-options \"-I%s\" } */\n\
+/* { dg-options \"-I%s -fno-common\" { target hppa*-*-hpux* } } */\n\
#include \"struct-layout-1.h\"\n\
\n\
#define TX(n, type, attrs, fields, ops) extern void test##n (void);\n\
@@ -564,7 +565,7 @@ int main (void)\n\
if (fails)\n\
abort ();\n\
exit (0);\n\
-}\n", srcdir, filecnt, filecnt);
+}\n", srcdir, srcdir, filecnt, filecnt);
fclose (outfile);
sprintf (destptr, "t%03d_x.c", filecnt);
outfile = fopen (destbuf, "w");
@@ -572,10 +573,11 @@ int main (void)\n\
goto fail;
fprintf (outfile, "\
/* { dg-options \"-w -I%s\" } */\n\
+/* { dg-options \"-w -I%s -fno-common\" { target hppa*-*-hpux* } } */\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, filecnt, filecnt);
+#include \"t%03d_test.h\"\n", srcdir, srcdir, filecnt, filecnt);
fclose (outfile);
sprintf (destptr, "t%03d_y.c", filecnt);
outfile = fopen (destbuf, "w");
@@ -583,10 +585,11 @@ int main (void)\n\
goto fail;
fprintf (outfile, "\
/* { dg-options \"-w -I%s\" } */\n\
+/* { dg-options \"-w -I%s -fno-common\" { target hppa*-*-hpux* } } */\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, filecnt, filecnt);
+#include \"t%03d_test.h\"\n", srcdir, srcdir, filecnt, filecnt);
fclose (outfile);
sprintf (destptr, "t%03d_test.h", filecnt);
outfile = fopen (destbuf, "w");