Need to add -fno-common. Tested on hppa2.0w-hp-hpux11.11.
Committed to trunk. Dave -- John David Anglin dave.ang...@bell.net
2016-01-31 John David Anglin <dang...@gcc.gnu.org> * gcc.dg/tree-ssa/vector-5.c: Add -fno-common option on hppa*-*-hpux*. Index: gcc.dg/tree-ssa/vector-5.c =================================================================== --- gcc.dg/tree-ssa/vector-5.c (revision 232999) +++ gcc.dg/tree-ssa/vector-5.c (working copy) @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O -fdump-tree-optimized" } */ +/* { dg-additional-options "-fno-common" { target hppa*-*-hpux* } } */ typedef int v4si __attribute__((vector_size(4*sizeof (int))));