Tested on hppa2.0w-hp-hpux11.11 and hppa64-hp-hpux11.11.  Both hunks
committed to trunk.  First hunk committed to 4.9 branch.

Dave
--
John David Anglin       dave.ang...@bell.net


2014-08-07  John David Anglin  <dang...@gcc.gnu.org>

        * gcc.dg/pr57233.c: Add -fno-common option on hppa*-*-hpux*.
        * c-c++-common/pr50459.c: Likewise.

Index: gcc.dg/pr57233.c
===================================================================
--- gcc.dg/pr57233.c    (revision 213683)
+++ gcc.dg/pr57233.c    (working copy)
@@ -1,6 +1,7 @@
 /* PR tree-optimization/57233 */
 /* { dg-do run { target { ilp32 || lp64 } } } */
 /* { dg-options "-O2" } */
+/* { dg-additional-options "-fno-common" { target hppa*-*-hpux* } } */
 
 typedef unsigned V4 __attribute__((vector_size(4 * sizeof (int))));
 typedef unsigned V8 __attribute__((vector_size(8 * sizeof (int))));
Index: c-c++-common/pr50459.c
===================================================================
--- c-c++-common/pr50459.c      (revision 213683)
+++ c-c++-common/pr50459.c      (working copy)
@@ -1,6 +1,7 @@
 /* PR c/50459 */
 /* { dg-do compile } */
 /* { dg-options "-Wall -Wextra" } */
+/* { dg-additional-options "-fno-common" { target hppa*-*-hpux* } } */
 
 enum { A = 128, B = 1 };
 void *fn1 (void) __attribute__((assume_aligned (A)));

Reply via email to