summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authordanglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4>2015-12-28 21:15:47 +0000
committerdanglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4>2015-12-28 21:15:47 +0000
commitaafde35e4611f9e4543a38a9a76268b7361c6d7f (patch)
tree6cb9d2325e8031256d06966731dab20fbffbce47 /gcc
parent461006b06f37d61b4c1da7a4f9a8fd1630295ec7 (diff)
downloadgcc-aafde35e4611f9e4543a38a9a76268b7361c6d7f.tar.gz
* gfortran.dg/coarray_40.f90: Link with libatomic if available.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@231981 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog2
-rw-r--r--gcc/testsuite/gfortran.dg/coarray_40.f903
2 files changed, 4 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index d183265e72f..15e276811e1 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,5 +1,7 @@
2015-12-28 John David Anglin <danglin@gcc.gnu.org>
+ * gfortran.dg/coarray_40.f90: Link with libatomic if available.
+
* gcc.dg/pr49551.c: Skip on hppa*-*-hpux*.
* gcc.dg/torture/pr67609.c: Add -fno-common option on hppa*-*-hpux*.
diff --git a/gcc/testsuite/gfortran.dg/coarray_40.f90 b/gcc/testsuite/gfortran.dg/coarray_40.f90
index 84af50e7dad..c9ee7d12c4b 100644
--- a/gcc/testsuite/gfortran.dg/coarray_40.f90
+++ b/gcc/testsuite/gfortran.dg/coarray_40.f90
@@ -1,5 +1,6 @@
! { dg-do run }
-! { dg-options "-fcoarray=lib -lcaf_single" }
+! { dg-options "-fcoarray=lib -lcaf_single -latomic" { target libatomic_available } }
+! { dg-options "-fcoarray=lib -lcaf_single" { target { ! libatomic_available } } }
!
! Run-time test for memory consistency
!