diff options
author | John David Anglin <danglin@gcc.gnu.org> | 2017-01-28 17:00:33 +0000 |
---|---|---|
committer | John David Anglin <danglin@gcc.gnu.org> | 2017-01-28 17:00:33 +0000 |
commit | b5df96c34435b1f577ade53d264b40d8a9c1b89b (patch) | |
tree | a1cb07c76438b632f2e0747b460465e878c80633 | |
parent | faa7e93c15607da1a334d80d2eb13361e5d5391f (diff) | |
download | gcc-b5df96c34435b1f577ade53d264b40d8a9c1b89b.zip gcc-b5df96c34435b1f577ade53d264b40d8a9c1b89b.tar.gz gcc-b5df96c34435b1f577ade53d264b40d8a9c1b89b.tar.bz2 |
coarray_41.f90: Add "-latomic" option if libatomic_available.
* 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
-rw-r--r-- | gcc/testsuite/ChangeLog | 9 | ||||
-rw-r--r-- | gcc/testsuite/gfortran.dg/coarray_41.f90 | 1 | ||||
-rw-r--r-- | gcc/testsuite/gfortran.dg/coarray_42.f90 | 1 | ||||
-rw-r--r-- | gcc/testsuite/gfortran.dg/coarray_alloc_comp_3.f08 | 1 | ||||
-rw-r--r-- | gcc/testsuite/gfortran.dg/coarray_alloc_comp_4.f08 | 1 | ||||
-rw-r--r-- | gcc/testsuite/gfortran.dg/coarray_lib_alloc_4.f90 | 1 |
6 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index f4b6aa0..80c7bae 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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. diff --git a/gcc/testsuite/gfortran.dg/coarray_41.f90 b/gcc/testsuite/gfortran.dg/coarray_41.f90 index b62d8e4..0a98e55 100644 --- a/gcc/testsuite/gfortran.dg/coarray_41.f90 +++ b/gcc/testsuite/gfortran.dg/coarray_41.f90 @@ -1,5 +1,6 @@ ! { dg-do run } ! { dg-options "-fcoarray=lib -lcaf_single" } +! { dg-additional-options "-latomic" { target libatomic_available } } program coarray_41 diff --git a/gcc/testsuite/gfortran.dg/coarray_42.f90 b/gcc/testsuite/gfortran.dg/coarray_42.f90 index e8db60d..982f5d1 100644 --- a/gcc/testsuite/gfortran.dg/coarray_42.f90 +++ b/gcc/testsuite/gfortran.dg/coarray_42.f90 @@ -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 diff --git a/gcc/testsuite/gfortran.dg/coarray_alloc_comp_3.f08 b/gcc/testsuite/gfortran.dg/coarray_alloc_comp_3.f08 index 8d2e793..e2037aa 100644 --- a/gcc/testsuite/gfortran.dg/coarray_alloc_comp_3.f08 +++ b/gcc/testsuite/gfortran.dg/coarray_alloc_comp_3.f08 @@ -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, diff --git a/gcc/testsuite/gfortran.dg/coarray_alloc_comp_4.f08 b/gcc/testsuite/gfortran.dg/coarray_alloc_comp_4.f08 index 517bb18..6586ec6 100644 --- a/gcc/testsuite/gfortran.dg/coarray_alloc_comp_4.f08 +++ b/gcc/testsuite/gfortran.dg/coarray_alloc_comp_4.f08 @@ -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. diff --git a/gcc/testsuite/gfortran.dg/coarray_lib_alloc_4.f90 b/gcc/testsuite/gfortran.dg/coarray_lib_alloc_4.f90 index 7b72707..c6de955 100644 --- a/gcc/testsuite/gfortran.dg/coarray_lib_alloc_4.f90 +++ b/gcc/testsuite/gfortran.dg/coarray_lib_alloc_4.f90 @@ -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. ! |