From 4ecbb52b6e52d62bc4ca2800ca7dd0d48c87137d Mon Sep 17 00:00:00 2001 From: John David Anglin Date: Sat, 9 Mar 2019 19:39:38 +0000 Subject: [PATCH] coarray_data_1.f90: Link against libatomic if target libatomic_available. * gfortran.dg/coarray_data_1.f90: Link against libatomic if target libatomic_available. From-SVN: r269534 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gfortran.dg/coarray_data_1.f90 | 1 + 2 files changed, 6 insertions(+) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index cb4bf77efef..dcc75f3d4f7 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2019-03-09 John David Anglin + + * gfortran.dg/coarray_data_1.f90: Link against libatomic if target + libatomic_available. + 2019-03-09 Iain Buclaw PR d/89041 diff --git a/gcc/testsuite/gfortran.dg/coarray_data_1.f90 b/gcc/testsuite/gfortran.dg/coarray_data_1.f90 index 94ab4c26cec..e1cc33eab41 100644 --- a/gcc/testsuite/gfortran.dg/coarray_data_1.f90 +++ b/gcc/testsuite/gfortran.dg/coarray_data_1.f90 @@ -1,5 +1,6 @@ ! { dg-do run } ! { dg-options "-fcoarray=lib -lcaf_single " } +! { dg-additional-options "-latomic" { target libatomic_available } } ! PR 71066 - this used to ICE program p real :: a(2,2)[*] -- 2.30.2