coarray_data_1.f90: Link against libatomic if target libatomic_available.
authorJohn David Anglin <dave.anglin@bell.net>
Sat, 9 Mar 2019 19:39:38 +0000 (19:39 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Sat, 9 Mar 2019 19:39:38 +0000 (19:39 +0000)
* gfortran.dg/coarray_data_1.f90: Link against libatomic if target
libatomic_available.

From-SVN: r269534

gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/coarray_data_1.f90

index cb4bf77efefe1440bc2d3e6d32701d673ae02310..dcc75f3d4f7c5eafac9ef3a903f7d8636a6bb8ef 100644 (file)
@@ -1,3 +1,8 @@
+2019-03-09  John David Anglin  <dave.anglin@bell.net>
+
+       * gfortran.dg/coarray_data_1.f90: Link against libatomic if target
+       libatomic_available.
+
 2019-03-09  Iain Buclaw  <ibuclaw@gdcproject.org>
 
        PR d/89041
index 94ab4c26cec0a519b6e077ba3dc997eb3b52080a..e1cc33eab419adac2ccc6a1bf4e439ddf4871d8e 100644 (file)
@@ -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)[*]