The attached change fixes these tests on hppa.  We need to link against 
libatomic.
Committed to trunk.

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


2016-11-19  John David Anglin  <dang...@gcc.gnu.org>

        * gfortran.dg/coarray_alloc_comp_1.f08: Add "-latomic" option if
        libatomic_available.
        * gfortran.dg/coarray_alloc_comp_2.f08: Likewise.
        * gfortran.dg/coarray_allocate_10.f08: Likewise.
        * gfortran.dg/coarray_allocate_7.f08: Likewise.
        * gfortran.dg/coarray_allocate_8.f08: Likewise.
        * gfortran.dg/coarray_allocate_9.f08: Likewise.
        * gfortran.dg/coarray_send_by_ref_1.f08: Likewise.
        * gfortran.dg/coarray_stat_2.f90: Likewise.
        * gfortran.dg/coindexed_1.f90: Likewise.

Index: gfortran.dg/coarray_alloc_comp_1.f08
===================================================================
--- gfortran.dg/coarray_alloc_comp_1.f08        (revision 242021)
+++ gfortran.dg/coarray_alloc_comp_1.f08        (working copy)
@@ -1,5 +1,6 @@
 ! { dg-do run }
 ! { dg-options "-fcoarray=lib -lcaf_single" }
+! { dg-additional-options "-latomic" { target libatomic_available } }
 
 ! Contributed by Damian Rouson
 ! Check the new _caf_get_by_ref()-routine.
Index: gfortran.dg/coarray_alloc_comp_2.f08
===================================================================
--- gfortran.dg/coarray_alloc_comp_2.f08        (revision 242021)
+++ gfortran.dg/coarray_alloc_comp_2.f08        (working copy)
@@ -1,5 +1,6 @@
 ! { dg-do run }
 ! { dg-options "-fcoarray=lib -lcaf_single" }
+! { dg-additional-options "-latomic" { target libatomic_available } }
 
 ! Contributed by Damian Rouson
 ! Check the new _caf_send_by_ref()-routine.
Index: gfortran.dg/coarray_allocate_10.f08
===================================================================
--- gfortran.dg/coarray_allocate_10.f08 (revision 242021)
+++ gfortran.dg/coarray_allocate_10.f08 (working copy)
@@ -1,5 +1,6 @@
 ! { dg-do run }
 ! { dg-options "-fcoarray=lib -lcaf_single" }
+! { dg-additional-options "-latomic" { target libatomic_available } }
 
 program alloc_comp
   implicit none
Index: gfortran.dg/coarray_allocate_7.f08
===================================================================
--- gfortran.dg/coarray_allocate_7.f08  (revision 242021)
+++ gfortran.dg/coarray_allocate_7.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 } }
 
 ! Contributed by Damian Rouson
 ! Checking whether (de-)registering of coarrays works.
Index: gfortran.dg/coarray_allocate_8.f08
===================================================================
--- gfortran.dg/coarray_allocate_8.f08  (revision 242021)
+++ gfortran.dg/coarray_allocate_8.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 alloc_comp
   implicit none
Index: gfortran.dg/coarray_allocate_9.f08
===================================================================
--- gfortran.dg/coarray_allocate_9.f08  (revision 242021)
+++ gfortran.dg/coarray_allocate_9.f08  (working copy)
@@ -1,5 +1,6 @@
 ! { dg-do run }
 ! { dg-options "-fcoarray=lib -lcaf_single" }
+! { dg-additional-options "-latomic" { target libatomic_available } }
 
 ! Contributed by Damian Rouson
 
Index: gfortran.dg/coarray_send_by_ref_1.f08
===================================================================
--- gfortran.dg/coarray_send_by_ref_1.f08       (revision 242021)
+++ gfortran.dg/coarray_send_by_ref_1.f08       (working copy)
@@ -1,5 +1,6 @@
 ! { dg-do run }
 ! { dg-options "-fcoarray=lib -lcaf_single" }
+! { dg-additional-options "-latomic" { target libatomic_available } }
 
 program check_caf_send_by_ref
 
Index: gfortran.dg/coarray_stat_2.f90
===================================================================
--- gfortran.dg/coarray_stat_2.f90      (revision 242021)
+++ gfortran.dg/coarray_stat_2.f90      (working copy)
@@ -1,5 +1,6 @@
 ! { dg-do run }
 ! { dg-options "-fcoarray=lib -lcaf_single" }
+! { dg-additional-options "-latomic" { target libatomic_available } }
 !
 ! Support for stat= in caf reference
 !
Index: gfortran.dg/coindexed_1.f90
===================================================================
--- gfortran.dg/coindexed_1.f90 (revision 242021)
+++ gfortran.dg/coindexed_1.f90 (working copy)
@@ -1,5 +1,6 @@
 ! { dg-do run }
 ! { dg-options "-fcoarray=lib -lcaf_single" }
+! { dg-additional-options "-latomic" { target libatomic_available } }
 !
 ! Contributed by Reinhold Bader
 !

Reply via email to