diff mbox

[committed] Fix failure of fortran.dg/coarray_40.f90 on hppa*-*-hpux*

Message ID F9C73BAC-BE7B-4E10-A9BC-9A9E384599B7@bell.net
State New
Headers show

Commit Message

John David Anglin Dec. 30, 2015, 8:35 p.m. UTC
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	dave.anglin@bell.net
2015-12-30  John David Anglin  <danglin@gcc.gnu.org>

	* gfortran.dg/coarray_40.f90: Revise to use dg-additional-options.
	* gfortran.dg/coarray_lib_comm_1.f90: Likewise.
diff mbox

Patch

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
 !