Patchwork [committed] Fix failure of gcc.dg/torture/pr45678-[12].c on 32-bit hpux

login
register
mail settings
Submitter John David Anglin
Date Oct. 2, 2010, 6:49 p.m.
Message ID <20101002184957.GA4024@hiauly1.hia.nrc.ca>
Download mbox | patch
Permalink /patch/66578/
State New
Headers show

Comments

John David Anglin - Oct. 2, 2010, 6:49 p.m.
Need -fno-common on 32-bit hpux due to alignment limitations of common.
Tested on hppa2.0w-hp-hpux11.11 and hppa64-hp-hpux11.11.  Committed to
trunk.

Dave

Patch

Index: gcc.dg/torture/pr45678-1.c
===================================================================
--- gcc.dg/torture/pr45678-1.c	(revision 164905)
+++ gcc.dg/torture/pr45678-1.c	(working copy)
@@ -1,4 +1,5 @@ 
 /* { dg-do run } */
+/* { dg-options "-fno-common" { target { { hppa*-*-hpux* } && { ! hppa*64*-*-* } } } } */
 
 typedef float V __attribute__ ((vector_size (16)));
 V g;
Index: gcc.dg/torture/pr45678-2.c
===================================================================
--- gcc.dg/torture/pr45678-2.c	(revision 164905)
+++ gcc.dg/torture/pr45678-2.c	(working copy)
@@ -1,4 +1,5 @@ 
 /* { dg-do run } */
+/* { dg-options "-fno-common" { target { { hppa*-*-hpux* } && { ! hppa*64*-*-* } } } } */
 
 typedef float V __attribute__ ((vector_size (16)));
 V g;