This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]