Tested on hppa2.0w-hp-hpux11.11 and hppa64-hp-hpux11.11.  Committed to trunk.

Dave
-- 
J. David Anglin                                  dave.ang...@nrc-cnrc.gc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)

2012-11-11  John David Anglin  <dave.ang...@nrc-cnrc.gc.ca>

        * gcc.dg/torture/pr54920.c: Add "-fno-common" option on hppa*-*-hpux*.
        * c-c++-common/torture/vector-subscript-1.c: Likewise.
        * c-c++-common/torture/vector-subscript-2.c: Likewise.

Index: gcc.dg/torture/pr54920.c
===================================================================
--- gcc.dg/torture/pr54920.c    (revision 192652)
+++ gcc.dg/torture/pr54920.c    (working copy)
@@ -1,4 +1,5 @@
 /* { dg-do compile } */
+/* { dg-options "-fno-common" { target { hppa*-*-hpux* } } } */
 
 typedef short __v8hi __attribute__ ((__vector_size__ (16)));
 typedef long long __m128i __attribute__ ((__vector_size__ (16)));
Index: c-c++-common/torture/vector-subscript-1.c
===================================================================
--- c-c++-common/torture/vector-subscript-1.c   (revision 192652)
+++ c-c++-common/torture/vector-subscript-1.c   (working copy)
@@ -1,4 +1,5 @@
 /* { dg-do run } */
+/* { dg-options "-fno-common" { target { hppa*-*-hpux* } } } */
 #define vector __attribute__((vector_size(sizeof(int)*4) ))
 
 /* Check to make sure that we extract and insert the vector at the same
Index: c-c++-common/torture/vector-subscript-2.c
===================================================================
--- c-c++-common/torture/vector-subscript-2.c   (revision 192652)
+++ c-c++-common/torture/vector-subscript-2.c   (working copy)
@@ -1,4 +1,5 @@
 /* { dg-do run } */
+/* { dg-options "-fno-common" { target hppa*-*-hpux* } } */
 #define vector __attribute__((vector_size(sizeof(int)*4) ))
 
 /* Check to make sure that we extract and insert the vector at the same

Reply via email to