diff options
author | Steve Ellcey <sje@gcc.gnu.org> | 2004-10-15 17:22:41 +0000 |
---|---|---|
committer | Steve Ellcey <sje@gcc.gnu.org> | 2004-10-15 17:22:41 +0000 |
commit | e68a07e8d547b03b769527365a40721d4d9298c6 (patch) | |
tree | e9fa390b7f1fe62b602d3c274bb781b4395e2b71 | |
parent | eff41b9f95682781fc79e25c208b91202dc6169c (diff) | |
download | gcc-e68a07e8d547b03b769527365a40721d4d9298c6.zip gcc-e68a07e8d547b03b769527365a40721d4d9298c6.tar.gz gcc-e68a07e8d547b03b769527365a40721d4d9298c6.tar.bz2 |
struct-layout-1_generate.c (switchfiles): Use -fno-common when on HPPA HP-UX platforms.
* gcc.dg/compat/struct-layout-1_generate.c (switchfiles): Use
-fno-common when on HPPA HP-UX platforms.
From-SVN: r89107
-rw-r--r-- | gcc/testsuite/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/compat/struct-layout-1_generate.c | 9 |
2 files changed, 12 insertions, 4 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 29c6e2c..a3d19c4 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,4 +1,9 @@ -004-10-15 Jakub Jelinek <jakub@redhat.com> +2004-10-15 Steve Ellcey <sje@cup.hp.com> + + * gcc.dg/compat/struct-layout-1_generate.c (switchfiles): Use + -fno-common when on HPPA HP-UX platforms. + +2004-10-15 Jakub Jelinek <jakub@redhat.com> PR other/16820 * gcc.dg/compat/struct-layout-1.h: Don't include complex.h nor 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 751d43d..bf40426 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"); |