From: John David Anglin Date: Sun, 26 Mar 2017 15:19:40 +0000 (+0000) Subject: coarray_failed_images_1.f08: Add "-latomic" option if libatomic_available. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=978fcba3916f6aaaabe8b109d4d837c1496bac21;p=gcc.git coarray_failed_images_1.f08: Add "-latomic" option if libatomic_available. * gfortran.dg/coarray_failed_images_1.f08: Add "-latomic" option if libatomic_available. * gfortran.dg/coarray_image_status_1.f08: Likewise. * gfortran.dg/coarray_stopped_images_1.f08: Likewise. From-SVN: r246484 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 005cbe4dec3..94cbe783c98 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2017-03-26 John David Anglin + + * gfortran.dg/coarray_failed_images_1.f08: Add "-latomic" option if + libatomic_available. + * gfortran.dg/coarray_image_status_1.f08: Likewise. + * gfortran.dg/coarray_stopped_images_1.f08: Likewise. + 2017-03-25 Jerry DeLisle PR libgfortran/78881 diff --git a/gcc/testsuite/gfortran.dg/coarray_failed_images_1.f08 b/gcc/testsuite/gfortran.dg/coarray_failed_images_1.f08 index 82387ec6a0e..e1385936296 100644 --- a/gcc/testsuite/gfortran.dg/coarray_failed_images_1.f08 +++ b/gcc/testsuite/gfortran.dg/coarray_failed_images_1.f08 @@ -1,5 +1,6 @@ ! { dg-do run } ! { dg-options "-fdump-tree-original -fcoarray=lib -lcaf_single" } +! { dg-additional-options "-latomic" { target libatomic_available } } program test_failed_images_1 implicit none diff --git a/gcc/testsuite/gfortran.dg/coarray_image_status_1.f08 b/gcc/testsuite/gfortran.dg/coarray_image_status_1.f08 index 1062c60f759..f90fe46c20f 100644 --- a/gcc/testsuite/gfortran.dg/coarray_image_status_1.f08 +++ b/gcc/testsuite/gfortran.dg/coarray_image_status_1.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 test_image_status_1 use iso_fortran_env , only : STAT_STOPPED_IMAGE diff --git a/gcc/testsuite/gfortran.dg/coarray_stopped_images_1.f08 b/gcc/testsuite/gfortran.dg/coarray_stopped_images_1.f08 index 36f86ed1a51..681e2a5f0aa 100644 --- a/gcc/testsuite/gfortran.dg/coarray_stopped_images_1.f08 +++ b/gcc/testsuite/gfortran.dg/coarray_stopped_images_1.f08 @@ -1,5 +1,6 @@ ! { dg-do run } ! { dg-options "-fdump-tree-original -fcoarray=lib -lcaf_single" } +! { dg-additional-options "-latomic" { target libatomic_available } } program test_stopped_images_1 implicit none