[committed] hppa: Fix alignment test failures on hppa-hpux

Message ID 5A64E95A.1060605@bell.net
State New
Headers show
Series
  • [committed] hppa: Fix alignment test failures on hppa-hpux
Related show

Commit Message

John David Anglin Jan. 21, 2018, 7:26 p.m.
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.anglin@bell.net
2018-01-21  John David Anglin  <danglin@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.

Patch

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;