The attached change adds the -fno-common option to several tests that fail on 
hppa*-*-hpux*.
Committed to trunk.

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


2017-02-03  John David Anglin  <dang...@gcc.gnu.org>

        * c-c++-common/Wunused-var-15.c: Add -fno-common additional option on
        hppa*-*-hpux*.
        * c-c++-common/Wunused-var-16.c: Likewise.
        * c-c++-common/builtin-shuffle-1.c: Likewise.
        * gcc.dg/debug/dwarf2/align-[1-6].c Likewise.
        * gcc.dg/debug/dwarf2/align-as-1.c: Likewise.

Index: c-c++-common/Wunused-var-15.c
===================================================================
--- c-c++-common/Wunused-var-15.c       (revision 245109)
+++ c-c++-common/Wunused-var-15.c       (working copy)
@@ -1,6 +1,7 @@
 /* PR c/71719 */
 /* { dg-do compile } */
 /* { dg-options "-Wunused -W -Wno-psabi" } */
+/* { dg-additional-options "-fno-common" { target hppa*-*-hpux* } } */
 
 typedef unsigned V __attribute__ ((vector_size (16)));
 
Index: c-c++-common/Wunused-var-16.c
===================================================================
--- c-c++-common/Wunused-var-16.c       (revision 245109)
+++ c-c++-common/Wunused-var-16.c       (working copy)
@@ -1,6 +1,7 @@
 /* PR c++/78949 */
 /* { dg-do compile } */
 /* { dg-options "-Wunused" } */
+/* { dg-additional-options "-fno-common" { target hppa*-*-hpux* } } */
 
 typedef unsigned char V __attribute__((vector_size(16)));
 V v;
Index: c-c++-common/builtin-shuffle-1.c
===================================================================
--- c-c++-common/builtin-shuffle-1.c    (revision 245109)
+++ c-c++-common/builtin-shuffle-1.c    (working copy)
@@ -1,5 +1,6 @@
 /* PR c++/78089 */
 /* { dg-do run } */
+/* { dg-additional-options "-fno-common" { target hppa*-*-hpux* } } */
 
 typedef int V __attribute__((vector_size (4 * __SIZEOF_INT__)));
 V a, b, c;
Index: gcc.dg/debug/dwarf2/align-1.c
===================================================================
--- gcc.dg/debug/dwarf2/align-1.c       (revision 245109)
+++ gcc.dg/debug/dwarf2/align-1.c       (working copy)
@@ -1,5 +1,6 @@
 // { dg-do compile }
 // { dg-options "-O -g -dA -gno-strict-dwarf" }
+// { dg-additional-options "-fno-common" { target hppa*-*-hpux* } }
 // { dg-final { scan-assembler-times " DW_AT_alignment" 1 { xfail { 
powerpc-ibm-aix* } } } }
 
 int __attribute__((__aligned__(64))) i;
Index: gcc.dg/debug/dwarf2/align-2.c
===================================================================
--- gcc.dg/debug/dwarf2/align-2.c       (revision 245109)
+++ gcc.dg/debug/dwarf2/align-2.c       (working copy)
@@ -1,5 +1,6 @@
 // { dg-do compile }
 // { dg-options "-O -g -dA -gno-strict-dwarf" }
+// { dg-additional-options "-fno-common" { target hppa*-*-hpux* } }
 // { dg-final { scan-assembler-times " DW_AT_alignment" 1 { xfail { 
powerpc-ibm-aix* } } } }
 
 typedef int __attribute__((__aligned__(64))) i_t;
Index: gcc.dg/debug/dwarf2/align-3.c
===================================================================
--- gcc.dg/debug/dwarf2/align-3.c       (revision 245109)
+++ gcc.dg/debug/dwarf2/align-3.c       (working copy)
@@ -1,5 +1,6 @@
 // { dg-do compile }
 // { dg-options "-O -g -dA -gno-strict-dwarf" }
+// { dg-additional-options "-fno-common" { target hppa*-*-hpux* } }
 // { dg-final { scan-assembler-times " DW_AT_alignment" 1 { xfail { 
powerpc-ibm-aix* } } } }
 
 typedef int int_t;
Index: gcc.dg/debug/dwarf2/align-4.c
===================================================================
--- gcc.dg/debug/dwarf2/align-4.c       (revision 245109)
+++ gcc.dg/debug/dwarf2/align-4.c       (working copy)
@@ -1,5 +1,6 @@
 // { dg-do compile }
 // { dg-options "-O -g -dA -gno-strict-dwarf" }
+// { dg-additional-options "-fno-common" { target hppa*-*-hpux* } }
 // { dg-final { scan-assembler-times " DW_AT_alignment" 2 { xfail { 
powerpc-ibm-aix* } } } }
 
 struct tt {
Index: gcc.dg/debug/dwarf2/align-5.c
===================================================================
--- gcc.dg/debug/dwarf2/align-5.c       (revision 245109)
+++ gcc.dg/debug/dwarf2/align-5.c       (working copy)
@@ -1,5 +1,6 @@
 // { dg-do compile }
 // { dg-options "-O -g -dA -gno-strict-dwarf" }
+// { dg-additional-options "-fno-common" { target hppa*-*-hpux* } }
 // { dg-final { scan-assembler-times " DW_AT_alignment" 1 { xfail { 
powerpc-ibm-aix* } } } }
 
 struct tt {
Index: gcc.dg/debug/dwarf2/align-6.c
===================================================================
--- gcc.dg/debug/dwarf2/align-6.c       (revision 245109)
+++ gcc.dg/debug/dwarf2/align-6.c       (working copy)
@@ -1,5 +1,6 @@
 // { dg-do compile }
 // { dg-options "-O -g -dA -gno-strict-dwarf" }
+// { dg-additional-options "-fno-common" { target hppa*-*-hpux* } }
 // { dg-final { scan-assembler-times " DW_AT_alignment" 1 { xfail { 
powerpc-ibm-aix* } } } }
 
 struct tt {
Index: gcc.dg/debug/dwarf2/align-as-1.c
===================================================================
--- gcc.dg/debug/dwarf2/align-as-1.c    (revision 245109)
+++ gcc.dg/debug/dwarf2/align-as-1.c    (working copy)
@@ -1,5 +1,6 @@
 // { dg-do compile }
 // { dg-options "-O -g -dA -gno-strict-dwarf" }
+// { dg-additional-options "-fno-common" { target hppa*-*-hpux* } }
 // { dg-final { scan-assembler-times " DW_AT_alignment" 1 { xfail { 
powerpc-ibm-aix* } } } }
 
 int _Alignas(64) i;

Reply via email to