From: John David Anglin Date: Sat, 19 Nov 2016 18:14:21 +0000 (+0000) Subject: coarray_alloc_comp_1.f08: Add "-latomic" option if libatomic_available. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ddba26a41219bf9dfac0a7e4fcd727d3dd5f317e;p=gcc.git coarray_alloc_comp_1.f08: Add "-latomic" option if libatomic_available. * gfortran.dg/coarray_alloc_comp_1.f08: Add "-latomic" option if libatomic_available. * gfortran.dg/coarray_alloc_comp_2.f08: Likewise. * gfortran.dg/coarray_allocate_10.f08: Likewise. * gfortran.dg/coarray_allocate_7.f08: Likewise. * gfortran.dg/coarray_allocate_8.f08: Likewise. * gfortran.dg/coarray_allocate_9.f08: Likewise. * gfortran.dg/coarray_send_by_ref_1.f08: Likewise. * gfortran.dg/coarray_stat_2.f90: Likewise. * gfortran.dg/coindexed_1.f90: Likewise. From-SVN: r242624 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 41133d82280..debb3b0aa8b 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,16 @@ +2016-11-19 John David Anglin + + * gfortran.dg/coarray_alloc_comp_1.f08: Add "-latomic" option if + libatomic_available. + * gfortran.dg/coarray_alloc_comp_2.f08: Likewise. + * gfortran.dg/coarray_allocate_10.f08: Likewise. + * gfortran.dg/coarray_allocate_7.f08: Likewise. + * gfortran.dg/coarray_allocate_8.f08: Likewise. + * gfortran.dg/coarray_allocate_9.f08: Likewise. + * gfortran.dg/coarray_send_by_ref_1.f08: Likewise. + * gfortran.dg/coarray_stat_2.f90: Likewise. + * gfortran.dg/coindexed_1.f90: Likewise. + 2016-11-18 Jeff Law PR target/25111 diff --git a/gcc/testsuite/gfortran.dg/coarray_alloc_comp_1.f08 b/gcc/testsuite/gfortran.dg/coarray_alloc_comp_1.f08 index 78da297d8a4..659fd487ab2 100644 --- a/gcc/testsuite/gfortran.dg/coarray_alloc_comp_1.f08 +++ b/gcc/testsuite/gfortran.dg/coarray_alloc_comp_1.f08 @@ -1,5 +1,6 @@ ! { dg-do run } ! { dg-options "-fcoarray=lib -lcaf_single" } +! { dg-additional-options "-latomic" { target libatomic_available } } ! Contributed by Damian Rouson ! Check the new _caf_get_by_ref()-routine. diff --git a/gcc/testsuite/gfortran.dg/coarray_alloc_comp_2.f08 b/gcc/testsuite/gfortran.dg/coarray_alloc_comp_2.f08 index b36ec2bfeb0..3b3ae6c641a 100644 --- a/gcc/testsuite/gfortran.dg/coarray_alloc_comp_2.f08 +++ b/gcc/testsuite/gfortran.dg/coarray_alloc_comp_2.f08 @@ -1,5 +1,6 @@ ! { dg-do run } ! { dg-options "-fcoarray=lib -lcaf_single" } +! { dg-additional-options "-latomic" { target libatomic_available } } ! Contributed by Damian Rouson ! Check the new _caf_send_by_ref()-routine. diff --git a/gcc/testsuite/gfortran.dg/coarray_allocate_10.f08 b/gcc/testsuite/gfortran.dg/coarray_allocate_10.f08 index 30ee216af04..89e7bb4a981 100644 --- a/gcc/testsuite/gfortran.dg/coarray_allocate_10.f08 +++ b/gcc/testsuite/gfortran.dg/coarray_allocate_10.f08 @@ -1,5 +1,6 @@ ! { dg-do run } ! { dg-options "-fcoarray=lib -lcaf_single" } +! { dg-additional-options "-latomic" { target libatomic_available } } program alloc_comp implicit none diff --git a/gcc/testsuite/gfortran.dg/coarray_allocate_7.f08 b/gcc/testsuite/gfortran.dg/coarray_allocate_7.f08 index 918f3e237f8..4b08941fa79 100644 --- a/gcc/testsuite/gfortran.dg/coarray_allocate_7.f08 +++ b/gcc/testsuite/gfortran.dg/coarray_allocate_7.f08 @@ -1,5 +1,6 @@ ! { dg-do run } ! { dg-options "-fcoarray=lib -lcaf_single -fdump-tree-original" } +! { dg-additional-options "-latomic" { target libatomic_available } } ! Contributed by Damian Rouson ! Checking whether (de-)registering of coarrays works. diff --git a/gcc/testsuite/gfortran.dg/coarray_allocate_8.f08 b/gcc/testsuite/gfortran.dg/coarray_allocate_8.f08 index 47100496360..6a85ded0251 100644 --- a/gcc/testsuite/gfortran.dg/coarray_allocate_8.f08 +++ b/gcc/testsuite/gfortran.dg/coarray_allocate_8.f08 @@ -1,5 +1,6 @@ ! { dg-do run } ! { dg-options "-fcoarray=lib -lcaf_single -fdump-tree-original" } +! { dg-additional-options "-latomic" { target libatomic_available } } program alloc_comp implicit none diff --git a/gcc/testsuite/gfortran.dg/coarray_allocate_9.f08 b/gcc/testsuite/gfortran.dg/coarray_allocate_9.f08 index 880f2b387fe..71409e9e6f8 100644 --- a/gcc/testsuite/gfortran.dg/coarray_allocate_9.f08 +++ b/gcc/testsuite/gfortran.dg/coarray_allocate_9.f08 @@ -1,5 +1,6 @@ ! { dg-do run } ! { dg-options "-fcoarray=lib -lcaf_single" } +! { dg-additional-options "-latomic" { target libatomic_available } } ! Contributed by Damian Rouson diff --git a/gcc/testsuite/gfortran.dg/coarray_send_by_ref_1.f08 b/gcc/testsuite/gfortran.dg/coarray_send_by_ref_1.f08 index 73f91e03993..75773f6465c 100644 --- a/gcc/testsuite/gfortran.dg/coarray_send_by_ref_1.f08 +++ b/gcc/testsuite/gfortran.dg/coarray_send_by_ref_1.f08 @@ -1,5 +1,6 @@ ! { dg-do run } ! { dg-options "-fcoarray=lib -lcaf_single" } +! { dg-additional-options "-latomic" { target libatomic_available } } program check_caf_send_by_ref diff --git a/gcc/testsuite/gfortran.dg/coarray_stat_2.f90 b/gcc/testsuite/gfortran.dg/coarray_stat_2.f90 index 3bbd3fc4bfc..9eed860ea57 100644 --- a/gcc/testsuite/gfortran.dg/coarray_stat_2.f90 +++ b/gcc/testsuite/gfortran.dg/coarray_stat_2.f90 @@ -1,5 +1,6 @@ ! { dg-do run } ! { dg-options "-fcoarray=lib -lcaf_single" } +! { dg-additional-options "-latomic" { target libatomic_available } } ! ! Support for stat= in caf reference ! diff --git a/gcc/testsuite/gfortran.dg/coindexed_1.f90 b/gcc/testsuite/gfortran.dg/coindexed_1.f90 index 932442c4b32..b3b41de10dc 100644 --- a/gcc/testsuite/gfortran.dg/coindexed_1.f90 +++ b/gcc/testsuite/gfortran.dg/coindexed_1.f90 @@ -1,5 +1,6 @@ ! { dg-do run } ! { dg-options "-fcoarray=lib -lcaf_single" } +! { dg-additional-options "-latomic" { target libatomic_available } } ! ! Contributed by Reinhold Bader !