From 225ee1c9d2c58ce8c214289da144921a6bb2884b Mon Sep 17 00:00:00 2001 From: John David Anglin Date: Sat, 11 Nov 2017 16:42:36 +0000 Subject: [PATCH] backport: Wunused-var-16.c: Add -fno-common additional option on hppa*-*-hpux* Backport from mainline 2017-02-03 John David Anglin * c-c++-common/Wunused-var-16.c: Add -fno-common additional option on hppa*-*-hpux* * c-c++-common/builtin-shuffle-1.c: Likewise. 2017-02-15 David Edelsohn * g++.dg/cpp0x/pr79296.C: Move dg-do compile directive first. 2017-02-24 David Edelsohn * g++.dg/ext/complit15.C: Require LTO. 2017-01-26 David Edelsohn * g++.dg/opt/declone3.C: Require LTO. 2017-03-26 John David Anglin * gcc.dg/torture/pr79732.c: Require alias support. 2017-02-03 John David Anglin * gfortran.dg/coarray_43.f90: Add "-latomic" option if libatomic_available. From-SVN: r254656 --- gcc/testsuite/ChangeLog | 30 +++++++++++++++++++ gcc/testsuite/c-c++-common/Wunused-var-16.c | 1 + .../c-c++-common/builtin-shuffle-1.c | 1 + gcc/testsuite/g++.dg/cpp0x/pr79296.C | 2 +- gcc/testsuite/g++.dg/ext/complit15.C | 1 + gcc/testsuite/g++.dg/opt/declone3.C | 1 + gcc/testsuite/gcc.dg/torture/pr79732.c | 1 + gcc/testsuite/gfortran.dg/coarray_43.f90 | 1 + 8 files changed, 37 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 4584af5a152c..fc1441b0c21b 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,33 @@ +2017-11-11 John David Anglin + + Backport from mainline + 2017-02-03 John David Anglin + + * c-c++-common/Wunused-var-16.c: Add -fno-common additional option on + hppa*-*-hpux* + * c-c++-common/builtin-shuffle-1.c: Likewise. + + 2017-02-15 David Edelsohn + + * g++.dg/cpp0x/pr79296.C: Move dg-do compile directive first. + + 2017-02-24 David Edelsohn + + * g++.dg/ext/complit15.C: Require LTO. + + 2017-01-26 David Edelsohn + + * g++.dg/opt/declone3.C: Require LTO. + + 2017-03-26 John David Anglin + + * gcc.dg/torture/pr79732.c: Require alias support. + + 2017-02-03 John David Anglin + + * gfortran.dg/coarray_43.f90: Add "-latomic" option if + libatomic_available. + 2017-11-10 Eric Botcazou * gnat.dg/opt69.adb: New test. diff --git a/gcc/testsuite/c-c++-common/Wunused-var-16.c b/gcc/testsuite/c-c++-common/Wunused-var-16.c index 98e66a723809..8bdbcd33c1a4 100644 --- a/gcc/testsuite/c-c++-common/Wunused-var-16.c +++ b/gcc/testsuite/c-c++-common/Wunused-var-16.c @@ -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; diff --git a/gcc/testsuite/c-c++-common/builtin-shuffle-1.c b/gcc/testsuite/c-c++-common/builtin-shuffle-1.c index 30fd69082dd9..eebb2a4a55a2 100644 --- a/gcc/testsuite/c-c++-common/builtin-shuffle-1.c +++ b/gcc/testsuite/c-c++-common/builtin-shuffle-1.c @@ -1,5 +1,6 @@ /* PR c++/78089 */ /* { dg-do run } */ +/* { dg-additional-options "-fno-common" { target hppa*-*-hpux* } } */ typedef int V __attribute__((vector_size (16))); V a, b, c; diff --git a/gcc/testsuite/g++.dg/cpp0x/pr79296.C b/gcc/testsuite/g++.dg/cpp0x/pr79296.C index 00dc2be10194..1ee982c71f04 100644 --- a/gcc/testsuite/g++.dg/cpp0x/pr79296.C +++ b/gcc/testsuite/g++.dg/cpp0x/pr79296.C @@ -1,6 +1,6 @@ +// { dg-do compile { target c++11 } } // { dg-require-effective-target lto } // { dg-additional-options "-flto" } -// { dg-do compile { target c++11 } } // PR 79296 ICE mangling local class of localized instantiation diff --git a/gcc/testsuite/g++.dg/ext/complit15.C b/gcc/testsuite/g++.dg/ext/complit15.C index f12752db2817..86876a8af83d 100644 --- a/gcc/testsuite/g++.dg/ext/complit15.C +++ b/gcc/testsuite/g++.dg/ext/complit15.C @@ -1,4 +1,5 @@ // PR c++/79580 +// { dg-require-effective-target lto } // { dg-options "-flto -std=c++98" } class a diff --git a/gcc/testsuite/g++.dg/opt/declone3.C b/gcc/testsuite/g++.dg/opt/declone3.C index d8c24921116a..26f3b5214c9a 100644 --- a/gcc/testsuite/g++.dg/opt/declone3.C +++ b/gcc/testsuite/g++.dg/opt/declone3.C @@ -1,5 +1,6 @@ // PR c++/79176 // { dg-do compile { target c++11 } } +// { dg-require-effective-target lto } // { dg-options "-flto -Os" } struct A {}; diff --git a/gcc/testsuite/gcc.dg/torture/pr79732.c b/gcc/testsuite/gcc.dg/torture/pr79732.c index 7231ba4f1399..ed2695bf2677 100644 --- a/gcc/testsuite/gcc.dg/torture/pr79732.c +++ b/gcc/testsuite/gcc.dg/torture/pr79732.c @@ -1,4 +1,5 @@ /* { dg-do link } */ +/* { dg-require-alias "" } */ int bar () __attribute__ ((alias ("foo"))); void foo () { } diff --git a/gcc/testsuite/gfortran.dg/coarray_43.f90 b/gcc/testsuite/gfortran.dg/coarray_43.f90 index d5ee4e1a6683..3078339f6a96 100644 --- a/gcc/testsuite/gfortran.dg/coarray_43.f90 +++ b/gcc/testsuite/gfortran.dg/coarray_43.f90 @@ -1,5 +1,6 @@ ! { dg-do link } ! { dg-options "-fcoarray=lib -lcaf_single" } +! { dg-additional-options "-latomic" { target libatomic_available } } program coarray_43 implicit none -- 2.47.2