diff mbox

[committed] Link various gfortran tests against libatomic when available

Message ID 68A12D2C-9D31-4426-A34F-BAAFB71D2BB2@bell.net
State New
Headers show

Commit Message

John David Anglin Nov. 19, 2016, 6:22 p.m. UTC
The attached change fixes these tests on hppa.  We need to link against libatomic.
Committed to trunk.

Dave
--
John David Anglin	dave.anglin@bell.net
2016-11-19  John David Anglin  <danglin@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.
diff mbox

Patch

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
 !