aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn David Anglin <danglin@gcc.gnu.org>2017-03-26 15:19:40 +0000
committerJohn David Anglin <danglin@gcc.gnu.org>2017-03-26 15:19:40 +0000
commit978fcba3916f6aaaabe8b109d4d837c1496bac21 (patch)
treee1d35cd02320246d9893e4acaab3c320d7633482
parent4f28d159c5718e23214ac1743d9b902ffc1e38d5 (diff)
downloadgcc-978fcba3916f6aaaabe8b109d4d837c1496bac21.zip
gcc-978fcba3916f6aaaabe8b109d4d837c1496bac21.tar.gz
gcc-978fcba3916f6aaaabe8b109d4d837c1496bac21.tar.bz2
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
-rw-r--r--gcc/testsuite/ChangeLog7
-rw-r--r--gcc/testsuite/gfortran.dg/coarray_failed_images_1.f081
-rw-r--r--gcc/testsuite/gfortran.dg/coarray_image_status_1.f081
-rw-r--r--gcc/testsuite/gfortran.dg/coarray_stopped_images_1.f081
4 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 005cbe4..94cbe78 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,10 @@
+2017-03-26 John David Anglin <danglin@gcc.gnu.org>
+
+ * 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 <jvdelisle@gcc.gnu.org>
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 82387ec..e138593 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 1062c60..f90fe46 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 36f86ed..681e2a5 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