From 38ea73a8c18ccc5e2920529c5d608388f54cb1dc Mon Sep 17 00:00:00 2001 From: John David Anglin Date: Sat, 16 Mar 2019 17:08:43 +0000 Subject: [PATCH] Wattributes-10.c: Add -fno-common option on hppa*-*-hpux*. * gcc.dg/Wattributes-10.c: Add -fno-common option on hppa*-*-hpux*. * gcc.dg/gimplefe-34.c: Likewise. * gcc.dg/compat/pr83487-2_x.c: Use -fno-common option on hppa*-*-hpux*. * gcc.dg/compat/pr83487-2_y.c: Likewise. From-SVN: r269729 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.dg/Wattributes-10.c | 3 ++- gcc/testsuite/gcc.dg/compat/pr83487-2_x.c | 1 + gcc/testsuite/gcc.dg/compat/pr83487-2_y.c | 1 + gcc/testsuite/gcc.dg/gimplefe-34.c | 1 + 5 files changed, 10 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 346e6461597..0dd1e8f1e3e 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,10 @@ 2019-03-16 John David Anglin + * gcc.dg/Wattributes-10.c: Add -fno-common option on hppa*-*-hpux*. + * gcc.dg/gimplefe-34.c: Likewise. + * gcc.dg/compat/pr83487-2_x.c: Use -fno-common option on hppa*-*-hpux*. + * gcc.dg/compat/pr83487-2_y.c: Likewise. + PR testsuite/84174 * gcc.dg/Wattributes-6.c: Skip warning check at line 404 on hppa*64*-*-*. diff --git a/gcc/testsuite/gcc.dg/Wattributes-10.c b/gcc/testsuite/gcc.dg/Wattributes-10.c index 4dccaf30757..c40fe65d438 100644 --- a/gcc/testsuite/gcc.dg/Wattributes-10.c +++ b/gcc/testsuite/gcc.dg/Wattributes-10.c @@ -1,7 +1,8 @@ /* PR middle-end/86453 - error: type variant differs by TYPE_PACKED in free_lang_data since r255469 { dg-do compile } - { dg-options "-Wall -ftrack-macro-expansion=0" } */ + { dg-options "-Wall -ftrack-macro-expansion=0" } + { dg-additional-options "-fno-common" { target hppa*-*-hpux* } } */ #define A(expr) do { int a[1 - 2 * !(expr)]; (void)&a; } while (0) diff --git a/gcc/testsuite/gcc.dg/compat/pr83487-2_x.c b/gcc/testsuite/gcc.dg/compat/pr83487-2_x.c index 494abd7e3a0..71031948c78 100644 --- a/gcc/testsuite/gcc.dg/compat/pr83487-2_x.c +++ b/gcc/testsuite/gcc.dg/compat/pr83487-2_x.c @@ -1,2 +1,3 @@ +/* { dg-options "-fno-common" { target { hppa*-*-hpux* } } } */ #define PR83487_LARGE #include "pr83487-1_x.c" diff --git a/gcc/testsuite/gcc.dg/compat/pr83487-2_y.c b/gcc/testsuite/gcc.dg/compat/pr83487-2_y.c index e5a67d5444c..e1767839418 100644 --- a/gcc/testsuite/gcc.dg/compat/pr83487-2_y.c +++ b/gcc/testsuite/gcc.dg/compat/pr83487-2_y.c @@ -1,2 +1,3 @@ +/* { dg-options "-fno-common" { target { hppa*-*-hpux* } } } */ #define PR83487_LARGE #include "pr83487-1_y.c" diff --git a/gcc/testsuite/gcc.dg/gimplefe-34.c b/gcc/testsuite/gcc.dg/gimplefe-34.c index 3cf28b57218..5825edce348 100644 --- a/gcc/testsuite/gcc.dg/gimplefe-34.c +++ b/gcc/testsuite/gcc.dg/gimplefe-34.c @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-fgimple" } */ +/* { dg-additional-options "-fno-common" { target hppa*-*-hpux* } } */ typedef unsigned char v16qi __attribute__((vector_size(16))); typedef unsigned char v8qi __attribute__((vector_size(8))); -- 2.11.4.GIT