From: John David Anglin Date: Mon, 28 Dec 2015 21:15:47 +0000 (+0000) Subject: coarray_40.f90: Link with libatomic if available. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=96d4e7be88ace8866561736a32f31c8ab072494b;p=gcc.git coarray_40.f90: Link with libatomic if available. * gfortran.dg/coarray_40.f90: Link with libatomic if available. From-SVN: r231981 --- 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 !