[committed] Fix failure of gfortran.dg/coarray_data_1.f90 on hppa-hpux

Message ID a8243662-9450-c31b-17e6-7cf9f315b286@bell.net
State New
Headers show
Series
  • [committed] Fix failure of gfortran.dg/coarray_data_1.f90 on hppa-hpux
Related show

Commit Message

John David Anglin March 9, 2019, 7:42 p.m.
Due to the lack of builtin atomics, we need to link against libatomic.

Committed to trunk.

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

2019-03-09  John David Anglin  <dave.anglin@bell.net>

	* gfortran.dg/coarray_data_1.f90: Link against libatomic if target
	libatomic_available.

Patch

Index: gfortran.dg/coarray_data_1.f90
===================================================================
--- gfortran.dg/coarray_data_1.f90	(revision 269531)
+++ gfortran.dg/coarray_data_1.f90	(working copy)
@@ -1,5 +1,6 @@ 
 ! { dg-do  run }
 ! { dg-options "-fcoarray=lib -lcaf_single " }
+! { dg-additional-options "-latomic" { target libatomic_available } }
 ! PR 71066 - this used to ICE
 program p
    real :: a(2,2)[*]