]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
backport: Wunused-var-16.c: Add -fno-common additional option on hppa*-*-hpux*
authorJohn David Anglin <danglin@gcc.gnu.org>
Sat, 11 Nov 2017 16:42:36 +0000 (16:42 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Sat, 11 Nov 2017 16:42:36 +0000 (16:42 +0000)
Backport from mainline
2017-02-03  John David Anglin  <danglin@gcc.gnu.org>

        * 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  <dje.gcc@gmail.com>

* g++.dg/cpp0x/pr79296.C: Move dg-do compile directive first.

2017-02-24  David Edelsohn  <dje.gcc@gmail.com>

* g++.dg/ext/complit15.C: Require LTO.

2017-01-26  David Edelsohn  <dje.gcc@gmail.com>

* g++.dg/opt/declone3.C: Require LTO.

2017-03-26  John David Anglin  <danglin@gcc.gnu.org>

* gcc.dg/torture/pr79732.c: Require alias support.

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

* gfortran.dg/coarray_43.f90: Add "-latomic" option if
libatomic_available.

From-SVN: r254656

gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/Wunused-var-16.c
gcc/testsuite/c-c++-common/builtin-shuffle-1.c
gcc/testsuite/g++.dg/cpp0x/pr79296.C
gcc/testsuite/g++.dg/ext/complit15.C
gcc/testsuite/g++.dg/opt/declone3.C
gcc/testsuite/gcc.dg/torture/pr79732.c
gcc/testsuite/gfortran.dg/coarray_43.f90

index 4584af5a152c5b34d9c6271c1bf5f355566343bb..fc1441b0c21b68e31b564066404f34a99bc152ec 100644 (file)
@@ -1,3 +1,33 @@
+2017-11-11  John David Anglin  <danglin@gcc.gnu.org>
+
+       Backport from mainline
+       2017-02-03  John David Anglin  <danglin@gcc.gnu.org>
+
+        * 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  <dje.gcc@gmail.com>
+
+       * g++.dg/cpp0x/pr79296.C: Move dg-do compile directive first.
+
+       2017-02-24  David Edelsohn  <dje.gcc@gmail.com>
+
+       * g++.dg/ext/complit15.C: Require LTO.
+
+       2017-01-26  David Edelsohn  <dje.gcc@gmail.com>
+
+       * g++.dg/opt/declone3.C: Require LTO.
+
+       2017-03-26  John David Anglin  <danglin@gcc.gnu.org>
+
+       * gcc.dg/torture/pr79732.c: Require alias support.
+
+       2017-02-03  John David Anglin  <danglin@gcc.gnu.org>
+
+       * gfortran.dg/coarray_43.f90: Add "-latomic" option if
+       libatomic_available.
+
 2017-11-10  Eric Botcazou  <ebotcazou@adacore.com>
 
        * gnat.dg/opt69.adb: New test.
index 98e66a7238093e6e7717aa9a8ca31346a7127525..8bdbcd33c1a4fad04345b3e4de84bf01bd469b09 100644 (file)
@@ -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 30fd69082dd9db7aedddec4bb56e174ade27b063..eebb2a4a55a23bc431d613ad2ff306831b86ed38 100644 (file)
@@ -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;
index 00dc2be101944b89f74dce24209cbcb17420e837..1ee982c71f0456bdf1c5907e5d959f9c5ae1ffe5 100644 (file)
@@ -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
 
index f12752db2817587caa79e328aa29d24136afd12e..86876a8af83d357fb9c1b280f9bbdb1723eae7db 100644 (file)
@@ -1,4 +1,5 @@
 // PR c++/79580
+// { dg-require-effective-target lto }
 // { dg-options "-flto -std=c++98" }
 
 class a
index d8c24921116a73776d384066115ec7eb03a3d090..26f3b5214c9a0a616d9471e3d9fb6f11c80f8396 100644 (file)
@@ -1,5 +1,6 @@
 // PR c++/79176
 // { dg-do compile { target c++11 } }
+// { dg-require-effective-target lto }
 // { dg-options "-flto -Os" }
 
 struct A {};
index 7231ba4f1399ee117a16b68bbb6cbef2e89fc328..ed2695bf26774ebed9edc11c2f0874f6071f1578 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-do link } */
+/* { dg-require-alias "" } */
 
 int bar () __attribute__ ((alias ("foo")));
 void foo () { }
index d5ee4e1a66839f2cf50743b6d5c8056037b82344..3078339f6a960aad693fc070f74fce0a978bd9c1 100644 (file)
@@ -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