This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[committed] Fix failure of gcc.dg/torture/pr45678-[12].c on 32-bit hpux
- From: John David Anglin <dave at hiauly1 dot hia dot nrc dot ca>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sat, 2 Oct 2010 14:49:58 -0400
- Subject: [committed] Fix failure of gcc.dg/torture/pr45678-[12].c on 32-bit hpux
- Reply-to: John David Anglin <dave dot anglin at nrc-cnrc dot gc dot ca>
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
--
J. David Anglin dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6602)
2010-10-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
* gcc.dg/torture/pr45678-1.c: Add -fno-common to options on 32-bit
hppa*-*-hpux*.
* gcc.dg/torture/pr45678-2.c: Likewise.
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;