coarray_41.f90: Add "-latomic" option if libatomic_available.
authorJohn David Anglin <danglin@gcc.gnu.org>
Sat, 28 Jan 2017 17:00:33 +0000 (17:00 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Sat, 28 Jan 2017 17:00:33 +0000 (17:00 +0000)
* gfortran.dg/coarray_41.f90: Add "-latomic" option if
libatomic_available.
* gfortran.dg/coarray_42.f90: Likewise.
* gfortran.dg/coarray_alloc_comp_3.f08: Likewise.
* gfortran.dg/coarray_alloc_comp_4.f08: Likewise.
* gfortran.dg/coarray_lib_alloc_4.f90: Likewise.

From-SVN: r245004

gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/coarray_41.f90
gcc/testsuite/gfortran.dg/coarray_42.f90
gcc/testsuite/gfortran.dg/coarray_alloc_comp_3.f08
gcc/testsuite/gfortran.dg/coarray_alloc_comp_4.f08
gcc/testsuite/gfortran.dg/coarray_lib_alloc_4.f90

index f4b6aa09a6e0f89d939418afa1ab84c865a6a426..80c7bae8e745f96b26f8c21f40c9737d56a01122 100644 (file)
@@ -1,3 +1,12 @@
+2017-01-28  John David Anglin  <danglin@gcc.gnu.org>
+
+       * gfortran.dg/coarray_41.f90: Add "-latomic" option if
+       libatomic_available.
+       * gfortran.dg/coarray_42.f90: Likewise.
+       * gfortran.dg/coarray_alloc_comp_3.f08: Likewise.
+       * gfortran.dg/coarray_alloc_comp_4.f08: Likewise.
+       * gfortran.dg/coarray_lib_alloc_4.f90: Likewise.
+
 2017-01-27  Martin Sebor  <msebor@redhat.com>
 
        * gcc.dg/tree-ssa/builtin-sprintf-warn-1.c: Add test cases.
index b62d8e41de4ef68ab9007d4274cffc7de2c3f3e8..0a98e5528c86ab3ec2f77a2c2d72ed4a4bd2e016 100644 (file)
@@ -1,5 +1,6 @@
 ! { dg-do run }
 ! { dg-options "-fcoarray=lib -lcaf_single" }
+! { dg-additional-options "-latomic" { target libatomic_available } }
 
 program coarray_41
 
index e8db60d496d29f4b329b87d036b24ef9c1254314..982f5d12381785fa57b21a820a4d3e67ded26509 100644 (file)
@@ -1,5 +1,6 @@
 ! { dg-do run }
 ! { dg-options "-fdump-tree-original -fcoarray=lib -lcaf_single" }
+! { dg-additional-options "-latomic" { target libatomic_available } }
 
 program Jac
   type Domain
index 8d2e7939b6e0920e93a13befb9a5e5c9cab45289..e2037aa58093d0de8c7bd4789f431c1c99f84372 100644 (file)
@@ -1,5 +1,6 @@
 ! { dg-do run }
 ! { dg-options "-fcoarray=lib -lcaf_single" }
+! { dg-additional-options "-latomic" { target libatomic_available } }
 !
 ! Contributed by Andre Vehreschild
 ! Check that manually freeing components does not lead to a runtime crash,
index 517bb188733887e4ea1806a4ee61ee2bf68fd5ec..6586ec651ddfa58860854e0a10f74bb4a7b83c19 100644 (file)
@@ -1,5 +1,6 @@
 ! { dg-do compile }
 ! { dg-options "-fcoarray=lib -fdump-tree-original" }
+! { dg-additional-options "-latomic" { target libatomic_available } }
 !
 ! Contributed by Andre Vehreschild
 ! Check that sub-components are caf_deregistered and not freed.
index 7b72707465daf0ac9e4b8764ae856a2556bf5a55..c6de955c0200b8f83fa23162e68a7dad4c74f71f 100644 (file)
@@ -1,5 +1,6 @@
 ! { dg-do run }
 ! { dg-options "-fcoarray=lib -lcaf_single -fdump-tree-original" }
+! { dg-additional-options "-latomic" { target libatomic_available } }
 !
 ! Allocate/deallocate with libcaf.
 !