aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJohn David Anglin <danglin@gcc.gnu.org>2019-03-16 17:08:43 +0000
committerJohn David Anglin <danglin@gcc.gnu.org>2019-03-16 17:08:43 +0000
commit38ea73a8c18ccc5e2920529c5d608388f54cb1dc (patch)
tree8d8f97c3560d51836d0521cad6218f81fbd8c90a /gcc
parentcdff63563468223ab1230041a846b3558ed275c2 (diff)
downloadgcc-38ea73a8c18ccc5e2920529c5d608388f54cb1dc.zip
gcc-38ea73a8c18ccc5e2920529c5d608388f54cb1dc.tar.gz
gcc-38ea73a8c18ccc5e2920529c5d608388f54cb1dc.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gcc.dg/Wattributes-10.c3
-rw-r--r--gcc/testsuite/gcc.dg/compat/pr83487-2_x.c1
-rw-r--r--gcc/testsuite/gcc.dg/compat/pr83487-2_y.c1
-rw-r--r--gcc/testsuite/gcc.dg/gimplefe-34.c1
5 files changed, 10 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 346e646..0dd1e8f 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,5 +1,10 @@
2019-03-16 John David Anglin <danglin@gcc.gnu.org>
+ * 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 4dccaf3..c40fe65 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 494abd7..7103194 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 e5a67d5..e176783 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 3cf28b5..5825edc 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)));