This patch fixes some new coarray testsuite fails on hppa.  Committed to trunk.

Dave
--
John David Anglin       dave.ang...@bell.net


2017-03-26  John David Anglin  <dang...@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.

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

Reply via email to