public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [committed] Fix gfortran.dg/coarray_allocate_5.f08 on targets needing to link with libatomic
@ 2016-03-15 23:38 John David Anglin
  0 siblings, 0 replies; only message in thread
From: John David Anglin @ 2016-03-15 23:38 UTC (permalink / raw)
  To: GCC Patches

[-- Attachment #1: Type: text/plain, Size: 197 bytes --]

This patch fixes failure of coarray_allocate_5.f08 on hppa.  Tested on hppa2.0w-hp-hpux11.11 and
hppa64-hp-hpux11.11.  Committed to trunk.

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



[-- Attachment #2: coarray_allocate_5.f08.d.txt --]
[-- Type: text/plain, Size: 667 bytes --]

2016-03-15  John David Anglin  <danglin@gcc.gnu.org>

	PR libfortran/69799
	* gfortran.dg/coarray_allocate_5.f08: Add "-latomic" option if
	libatomic_available.

Index: gfortran.dg/coarray_allocate_5.f08
===================================================================
--- gfortran.dg/coarray_allocate_5.f08	(revision 234163)
+++ gfortran.dg/coarray_allocate_5.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 Ian Harvey  <ian_harvey@bigpond.com>
 ! Extended by Andre Vehreschild  <vehre@gcc.gnu.org>

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-03-15 23:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-15 23:38 [committed] Fix gfortran.dg/coarray_allocate_5.f08 on targets needing to link with libatomic John David Anglin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).