The following patch fixes a few test failures on hpux due to the limited alignment of common.
Tested on hppa64-hp-hpux11.11.  Committed to trunk.
Dave

--
John David Anglin  dave.ang...@bell.net

2018-01-21  John David Anglin  <dang...@gcc.gnu.org>

        * gcc.dg/pr83621.c: Add -fno-common additional option on hppa*-&-hpux*.
        * gcc.dg/pr83623.c: Likewise.
        * gcc.dg/pr83666.c: Likewise.

Index: gcc.dg/pr83621.c
===================================================================
--- gcc.dg/pr83621.c    (revision 256889)
+++ gcc.dg/pr83621.c    (working copy)
@@ -1,6 +1,7 @@
 /* PR debug/83621 */
 /* { dg-do compile } */
 /* { dg-options "-O -g" } */
+/* { dg-additional-options "-fno-common" { target hppa*-*-hpux* } } */
 
 typedef int __attribute__ ((__vector_size__ (64))) V;
 V v;
Index: gcc.dg/pr83623.c
===================================================================
--- gcc.dg/pr83623.c    (revision 256889)
+++ gcc.dg/pr83623.c    (working copy)
@@ -2,6 +2,7 @@
 /* { dg-do compile } */
 /* { dg-options "-O2" } */
 /* { dg-additional-options "-mmovbe" { target i?86-*-* x86_64-*-* } } */
+/* { dg-additional-options "-fno-common" { target hppa*-*-hpux* } } */
 
 unsigned short __attribute__ ((__vector_size__ (16))) x;
 
Index: gcc.dg/pr83666.c
===================================================================
--- gcc.dg/pr83666.c    (revision 256889)
+++ gcc.dg/pr83666.c    (working copy)
@@ -1,6 +1,7 @@
 /* PR debug/83666 */
 /* { dg-do compile } */
 /* { dg-options "-O2 -g --param=sccvn-max-scc-size=10 -Wno-psabi" } */
+/* { dg-additional-options "-fno-common" { target hppa*-*-hpux* } } */
 
 typedef int __attribute__ ((vector_size (64))) V;
 

Reply via email to