From: John David Anglin Date: Sat, 28 Jan 2017 17:00:33 +0000 (+0000) Subject: coarray_41.f90: Add "-latomic" option if libatomic_available. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b5df96c34435b1f577ade53d264b40d8a9c1b89b;p=gcc.git 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 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index f4b6aa09a6e..80c7bae8e74 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,12 @@ +2017-01-28 John David Anglin + + * 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 * 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 b62d8e41de4..0a98e5528c8 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 e8db60d496d..982f5d12381 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 8d2e7939b6e..e2037aa5809 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 517bb188733..6586ec651dd 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 7b72707465d..c6de955c020 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. !