From 96d4e7be88ace8866561736a32f31c8ab072494b Mon Sep 17 00:00:00 2001 From: John David Anglin Date: Mon, 28 Dec 2015 21:15:47 +0000 Subject: [PATCH] coarray_40.f90: Link with libatomic if available. * gfortran.dg/coarray_40.f90: Link with libatomic if available. From-SVN: r231981 --- gcc/testsuite/ChangeLog | 2 ++ gcc/testsuite/gfortran.dg/coarray_40.f90 | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) 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 + * 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 ! -- 2.30.2