diff mbox

[committed] Fix new coarray test fails on hppa

Message ID B450175D-89FD-4ED7-A03E-388F1D82E92C@bell.net
State New
Headers show

Commit Message

John David Anglin March 26, 2017, 3:24 p.m. UTC
This patch fixes some new coarray testsuite fails on hppa.  Committed to trunk.

Dave
--
John David Anglin	dave.anglin@bell.net
2017-03-26  John David Anglin  <danglin@gcc.gnu.org>

	* gfortran.dg/coarray_failed_images_1.f08: Add "-latomic" option if
	libatomic_available.
	* gfortran.dg/coarray_image_status_1.f08: Likewise.
	* gfortran.dg/coarray_stopped_images_1.f08: Likewise.
diff mbox

Patch

Index: gfortran.dg/coarray_failed_images_1.f08
===================================================================
--- gfortran.dg/coarray_failed_images_1.f08	(revision 246268)
+++ gfortran.dg/coarray_failed_images_1.f08	(working copy)
@@ -1,5 +1,6 @@ 
 ! { dg-do run }
 ! { dg-options "-fdump-tree-original -fcoarray=lib -lcaf_single" }
+! { dg-additional-options "-latomic" { target libatomic_available } }
 
 program test_failed_images_1
   implicit none
Index: gfortran.dg/coarray_image_status_1.f08
===================================================================
--- gfortran.dg/coarray_image_status_1.f08	(revision 246268)
+++ gfortran.dg/coarray_image_status_1.f08	(working copy)
@@ -1,5 +1,6 @@ 
 ! { dg-do run }
 ! { dg-options "-fcoarray=lib -lcaf_single -fdump-tree-original" }
+! { dg-additional-options "-latomic" { target libatomic_available } }
 
 program test_image_status_1
   use iso_fortran_env , only : STAT_STOPPED_IMAGE
Index: gfortran.dg/coarray_stopped_images_1.f08
===================================================================
--- gfortran.dg/coarray_stopped_images_1.f08	(revision 246268)
+++ gfortran.dg/coarray_stopped_images_1.f08	(working copy)
@@ -1,5 +1,6 @@ 
 ! { dg-do run }
 ! { dg-options "-fdump-tree-original -fcoarray=lib -lcaf_single" }
+! { dg-additional-options "-latomic" { target libatomic_available } }
 
 program test_stopped_images_1
   implicit none