Add -fno-common to some more tests on hppa*-*-hpux* to avoid limited
alignment capabilities.

Tested on hppa2.0w-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)

2011-10-30  John David Anglin  <dave.ang...@nrc-cnrc.gc.ca>

        * gcc.dg/scal-to-vec2.c (dg-options): Add -fno-common to options on
        hppa*-*-hpux*.
        * gcc.dg/torture/vshuf-v8hi.c: Likewise.
        * gcc.dg/torture/vshuf-v4si.c: Likewise.
        * gcc.dg/torture/vshuf-v8si.c: Likewise.
        * gcc.dg/torture/vshuf-v32qi.c: Likewise.
        * gcc.dg/torture/vshuf-v4di.c: Likewise.
        * gcc.dg/torture/vshuf-v2df.c: Likewise.
        * gcc.dg/torture/vshuf-v16qi.c: Likewise.
        * gcc.dg/torture/vshuf-v4sf.c: Likewise.
        * gcc.dg/torture/vshuf-v8sf.c: Likewise.
        * gcc.dg/torture/vshuf-v2di.c: Likewise.
        * gcc.dg/torture/vshuf-v16hi.c: Likewise.
        * gcc.dg/torture/vshuf-v4df.c: Likewise.
        * gcc.dg/tree-ssa/ssa-fre-31.c: Likewise.
        * gcc.dg/tree-ssa/ssa-fre-33.c: Likewise.
        * gcc.dg/tree-ssa/ssa-fre-34.c: Likewise.
        * gcc.dg/vector-compare-2.c: Likewise.

Index: gcc.dg/scal-to-vec2.c
===================================================================
--- gcc.dg/scal-to-vec2.c       (revision 180650)
+++ gcc.dg/scal-to-vec2.c       (working copy)
@@ -1,4 +1,5 @@
 /* { dg-do compile } */   
+/* { dg-options "-fno-common" { target hppa*-*-hpux* } } */
 
 /* Test for C_MAYBE_CONST are folded correctly when 
    expanding an expression to vector.  */
Index: gcc.dg/torture/vshuf-v8hi.c
===================================================================
--- gcc.dg/torture/vshuf-v8hi.c (revision 180650)
+++ gcc.dg/torture/vshuf-v8hi.c (working copy)
@@ -1,5 +1,6 @@
 /* { dg-do run } */
 /* { dg-options "-DEXPENSIVE" { target run_expensive_tests } } */
+/* { dg-options "-fno-common" { target hppa*-*-hpux* } } */
 /* { dg-skip-if "" { ! run_expensive_tests } { "*" } { "-O2" } } */
 /* { dg-skip-if "" { ! run_expensive_tests } { "-flto" } { "" } } */
 
Index: gcc.dg/torture/vshuf-v4si.c
===================================================================
--- gcc.dg/torture/vshuf-v4si.c (revision 180650)
+++ gcc.dg/torture/vshuf-v4si.c (working copy)
@@ -1,5 +1,6 @@
 /* { dg-do run } */
 /* { dg-options "-DEXPENSIVE" { target run_expensive_tests } } */
+/* { dg-options "-fno-common" { target hppa*-*-hpux* } } */
 /* { dg-skip-if "" { ! run_expensive_tests } { "*" } { "-O2" } } */
 /* { dg-skip-if "" { ! run_expensive_tests } { "-flto" } { "" } } */
 
Index: gcc.dg/torture/vshuf-v8si.c
===================================================================
--- gcc.dg/torture/vshuf-v8si.c (revision 180650)
+++ gcc.dg/torture/vshuf-v8si.c (working copy)
@@ -1,5 +1,6 @@
 /* { dg-do run } */
 /* { dg-options "-DEXPENSIVE" { target run_expensive_tests } } */
+/* { dg-options "-fno-common" { target hppa*-*-hpux* } } */
 /* { dg-skip-if "" { ! run_expensive_tests } { "*" } { "-O2" } } */
 /* { dg-skip-if "" { ! run_expensive_tests } { "-flto" } { "" } } */
 
Index: gcc.dg/torture/vshuf-v32qi.c
===================================================================
--- gcc.dg/torture/vshuf-v32qi.c        (revision 180650)
+++ gcc.dg/torture/vshuf-v32qi.c        (working copy)
@@ -1,5 +1,6 @@
 /* { dg-do run } */
 /* { dg-options "-DEXPENSIVE" { target run_expensive_tests } } */
+/* { dg-options "-fno-common" { target hppa*-*-hpux* } } */
 /* { dg-skip-if "" { ! run_expensive_tests } { "*" } { "-O2" } } */
 /* { dg-skip-if "" { ! run_expensive_tests } { "-flto" } { "" } } */
 
Index: gcc.dg/torture/vshuf-v4di.c
===================================================================
--- gcc.dg/torture/vshuf-v4di.c (revision 180650)
+++ gcc.dg/torture/vshuf-v4di.c (working copy)
@@ -1,5 +1,6 @@
 /* { dg-do run } */
 /* { dg-options "-DEXPENSIVE" { target run_expensive_tests } } */
+/* { dg-options "-fno-common" { target hppa*-*-hpux* } } */
 /* { dg-skip-if "" { ! run_expensive_tests } { "*" } { "-O2" } } */
 /* { dg-skip-if "" { ! run_expensive_tests } { "-flto" } { "" } } */
 
Index: gcc.dg/torture/vshuf-v2df.c
===================================================================
--- gcc.dg/torture/vshuf-v2df.c (revision 180650)
+++ gcc.dg/torture/vshuf-v2df.c (working copy)
@@ -1,5 +1,6 @@
 /* { dg-do run } */
 /* { dg-options "-DEXPENSIVE" { target run_expensive_tests } } */
+/* { dg-options "-fno-common" { target hppa*-*-hpux* } } */
 /* { dg-skip-if "" { ! run_expensive_tests } { "*" } { "-O2" } } */
 /* { dg-skip-if "" { ! run_expensive_tests } { "-flto" } { "" } } */
 
Index: gcc.dg/torture/vshuf-v16qi.c
===================================================================
--- gcc.dg/torture/vshuf-v16qi.c        (revision 180650)
+++ gcc.dg/torture/vshuf-v16qi.c        (working copy)
@@ -1,5 +1,6 @@
 /* { dg-do run } */
 /* { dg-options "-DEXPENSIVE" { target run_expensive_tests } } */
+/* { dg-options "-fno-common" { target hppa*-*-hpux* } } */
 /* { dg-skip-if "" { ! run_expensive_tests } { "*" } { "-O2" } } */
 /* { dg-skip-if "" { ! run_expensive_tests } { "-flto" } { "" } } */
 
Index: gcc.dg/torture/vshuf-v4sf.c
===================================================================
--- gcc.dg/torture/vshuf-v4sf.c (revision 180650)
+++ gcc.dg/torture/vshuf-v4sf.c (working copy)
@@ -1,5 +1,6 @@
 /* { dg-do run } */
 /* { dg-options "-DEXPENSIVE" { target run_expensive_tests } } */
+/* { dg-options "-fno-common" { target hppa*-*-hpux* } } */
 /* { dg-skip-if "" { ! run_expensive_tests } { "*" } { "-O2" } } */
 /* { dg-skip-if "" { ! run_expensive_tests } { "-flto" } { "" } } */
 
Index: gcc.dg/torture/vshuf-v8sf.c
===================================================================
--- gcc.dg/torture/vshuf-v8sf.c (revision 180650)
+++ gcc.dg/torture/vshuf-v8sf.c (working copy)
@@ -1,5 +1,6 @@
 /* { dg-do run } */
 /* { dg-options "-DEXPENSIVE" { target run_expensive_tests } } */
+/* { dg-options "-fno-common" { target hppa*-*-hpux* } } */
 /* { dg-skip-if "" { ! run_expensive_tests } { "*" } { "-O2" } } */
 /* { dg-skip-if "" { ! run_expensive_tests } { "-flto" } { "" } } */
 
Index: gcc.dg/torture/vshuf-v2di.c
===================================================================
--- gcc.dg/torture/vshuf-v2di.c (revision 180650)
+++ gcc.dg/torture/vshuf-v2di.c (working copy)
@@ -1,5 +1,6 @@
 /* { dg-do run } */
 /* { dg-options "-DEXPENSIVE" { target run_expensive_tests } } */
+/* { dg-options "-fno-common" { target hppa*-*-hpux* } } */
 /* { dg-skip-if "" { ! run_expensive_tests } { "*" } { "-O2" } } */
 /* { dg-skip-if "" { ! run_expensive_tests } { "-flto" } { "" } } */
 
Index: gcc.dg/torture/vshuf-v16hi.c
===================================================================
--- gcc.dg/torture/vshuf-v16hi.c        (revision 180650)
+++ gcc.dg/torture/vshuf-v16hi.c        (working copy)
@@ -1,5 +1,6 @@
 /* { dg-do run } */
 /* { dg-options "-DEXPENSIVE" { target run_expensive_tests } } */
+/* { dg-options "-fno-common" { target hppa*-*-hpux* } } */
 /* { dg-skip-if "" { ! run_expensive_tests } { "*" } { "-O2" } } */
 /* { dg-skip-if "" { ! run_expensive_tests } { "-flto" } { "" } } */
 
Index: gcc.dg/torture/vshuf-v4df.c
===================================================================
--- gcc.dg/torture/vshuf-v4df.c (revision 180650)
+++ gcc.dg/torture/vshuf-v4df.c (working copy)
@@ -1,5 +1,6 @@
 /* { dg-do run } */
 /* { dg-options "-DEXPENSIVE" { target run_expensive_tests } } */
+/* { dg-options "-fno-common" { target hppa*-*-hpux* } } */
 /* { dg-skip-if "" { ! run_expensive_tests } { "*" } { "-O2" } } */
 /* { dg-skip-if "" { ! run_expensive_tests } { "-flto" } { "" } } */
 
Index: gcc.dg/tree-ssa/ssa-fre-31.c
===================================================================
--- gcc.dg/tree-ssa/ssa-fre-31.c        (revision 180650)
+++ gcc.dg/tree-ssa/ssa-fre-31.c        (working copy)
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "-O -fdump-tree-fre1-details" } */
+/* { dg-options "-O -fdump-tree-fre1-details -fno-common" { target 
hppa*-*-hpux* } } */
 
 typedef double d128 __attribute__((vector_size(16)));
 typedef float f128 __attribute__((vector_size(16)));
Index: gcc.dg/tree-ssa/ssa-fre-33.c
===================================================================
--- gcc.dg/tree-ssa/ssa-fre-33.c        (revision 180650)
+++ gcc.dg/tree-ssa/ssa-fre-33.c        (working copy)
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "-O -fdump-tree-fre1-details" } */
+/* { dg-options "-O -fdump-tree-fre1-details -fno-common" { target 
hppa*-*-hpux* } } */
 
 #define vector __attribute__((vector_size(16) ))
 
Index: gcc.dg/tree-ssa/ssa-fre-34.c
===================================================================
--- gcc.dg/tree-ssa/ssa-fre-34.c        (revision 180650)
+++ gcc.dg/tree-ssa/ssa-fre-34.c        (working copy)
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "-O -fdump-tree-fre1-details" } */
+/* { dg-options "-O -fdump-tree-fre1-details -fno-common" { target 
hppa*-*-hpux* } } */
 
 #define vector __attribute__((vector_size(16) ))
 
Index: gcc.dg/vector-compare-2.c
===================================================================
--- gcc.dg/vector-compare-2.c   (revision 180650)
+++ gcc.dg/vector-compare-2.c   (working copy)
@@ -1,4 +1,5 @@
 /* { dg-do compile } */   
+/* { dg-options "-fno-common" { target hppa*-*-hpux* } } */
 
 /* Test if C_MAYBE_CONST are folded correctly when 
    creating VEC_COND_EXPR.  */

Reply via email to