diff mbox series

[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 | expand

Commit Message

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

Committed to trunk.

Dave
diff mbox series

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)[*]