re PR testsuite/62250 (FAIL: gfortran.dg/coarray/alloc_comp_1.f90 -fcoarray=lib ...
authorHans-Peter Nilsson <hp@gcc.gnu.org>
Thu, 8 Jan 2015 21:59:26 +0000 (21:59 +0000)
committerHans-Peter Nilsson <hp@gcc.gnu.org>
Thu, 8 Jan 2015 21:59:26 +0000 (21:59 +0000)
PR testsuite/62250
* lib/target-supports.exp (check_effective_target_libatomic_available):
New.
* gfortran.dg/coarray/caf.exp: Only add -latomic for
targets that match effective-target libatomic_available.
* gfortran.dg/coarray_lib_comm_1.f90: Similar.

From-SVN: r219365

gcc/testsuite/gfortran.dg/coarray_lib_comm_1.f90

index 10346d459b665dbb8334ec64ba2bda3e6290f384..e57b328c0a0a89fc9b9ad0f5d64997dcb0173cda 100644 (file)
@@ -1,5 +1,6 @@
 ! { dg-do run }
-! { dg-options "-fdump-tree-original -fcoarray=lib -lcaf_single -latomic" }
+! { dg-options "-fdump-tree-original -fcoarray=lib -lcaf_single -latomic" { target libatomic_available } }
+! { dg-options "-fdump-tree-original -fcoarray=lib -lcaf_single" { target { ! libatomic_available } } }
 !
 ! Some dependency-analysis check for coarray communication
 !