On 2015-12-28, at 4:41 PM, Jakub Jelinek wrote:
> That is undesirable, please use
> ! { dg-options "-fcoarray=lib -lcaf_single" }
> ! { dg-additional-options "-latomic" { target libatomic_available } }
> instead.
Committed attached change to trunk and a similar update to gcc-5.
Dave
--
John David Anglin [email protected]
2015-12-30 John David Anglin <[email protected]>
* gfortran.dg/coarray_40.f90: Revise to use dg-additional-options.
* gfortran.dg/coarray_lib_comm_1.f90: Likewise.
Index: gfortran.dg/coarray_40.f90
===================================================================
--- gfortran.dg/coarray_40.f90 (revision 231981)
+++ gfortran.dg/coarray_40.f90 (working copy)
@@ -1,6 +1,6 @@
! { dg-do run }
-! { dg-options "-fcoarray=lib -lcaf_single -latomic" { target
libatomic_available } }
-! { dg-options "-fcoarray=lib -lcaf_single" { target { ! libatomic_available }
} }
+! { dg-options "-fcoarray=lib -lcaf_single" }
+! { dg-additional-options "-latomic" { target libatomic_available } }
!
! Run-time test for memory consistency
!
Index: gfortran.dg/coarray_lib_comm_1.f90
===================================================================
--- gfortran.dg/coarray_lib_comm_1.f90 (revision 231981)
+++ gfortran.dg/coarray_lib_comm_1.f90 (working copy)
@@ -1,6 +1,6 @@
! { dg-do run }
-! { 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 } } }
+! { dg-options "-fdump-tree-original -fcoarray=lib -lcaf_single" }
+! { dg-additional-options "-latomic" { target libatomic_available } }
!
! Some dependency-analysis check for coarray communication
!