This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[committed] Fix failure of gfortran.dg/coarray_data_1.f90 on hppa-hpux
- From: John David Anglin <dave dot anglin at bell dot net>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Sat, 9 Mar 2019 14:42:44 -0500
- Subject: [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)[*]