From patchwork Mon Dec 28 21:19:47 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John David Anglin X-Patchwork-Id: 561397 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4942C140CB9 for ; Tue, 29 Dec 2015 08:20:00 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=o2vEnY7I; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :content-type:date:subject:to:message-id:mime-version; q=dns; s= default; b=JhzgcwOFy9YXAzXRDCgv5jYPX6uBhva9hIM4hV00zcABfHG/Ri/oM ymPEOJPE0lGY7+0Yh74G/KdwoM5rHZa2PmkULvmCpRxAnWcMtCzHe3dBTDmJx11L oCADRb9gCAMirRBOlZQ6b+8Y8Tt0y+STlcsRJ3MxWefx1f6up6VO3s= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :content-type:date:subject:to:message-id:mime-version; s= default; bh=gSgR1BQgsyoJLHWepdpp2w3Ox2s=; b=o2vEnY7IGQHxLSXQ6v1r EvanxrzH7V44elgLBm4m0o0illO3IQ1DFNC5Wqnh6aFQW+eCGrU6KKb74nkipPdJ m3ltyHMEyZ1YE8JJV0YFFT0YU2NYNDs2e5PQDlYUBbjrGo8dhjqwgxGl+7TPCDKf llGlBoDVA1rJdFor79SQ/Xc= Received: (qmail 8689 invoked by alias); 28 Dec 2015 21:19:53 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 8669 invoked by uid 89); 28 Dec 2015 21:19:52 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD, SPF_PASS, UNPARSEABLE_RELAY autolearn=ham version=3.3.2 spammy=Hx-languages-length:914, lcaf_single, fcoarray X-HELO: mtlfep02.bell.net Received: from belmont80srvr.owm.bell.net (HELO mtlfep02.bell.net) (184.150.200.80) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 28 Dec 2015 21:19:51 +0000 Received: from bell.net mtlfep02 184.150.200.30 by mtlfep02.bell.net with ESMTP id <20151228211947.SGLT23667.mtlfep02.bell.net@mtlspm01.bell.net> for ; Mon, 28 Dec 2015 16:19:47 -0500 Received: from [192.168.2.10] (really [70.53.62.134]) by mtlspm01.bell.net with ESMTP id <20151228211947.OMFY4210.mtlspm01.bell.net@[192.168.2.10]>; Mon, 28 Dec 2015 16:19:47 -0500 From: John David Anglin Date: Mon, 28 Dec 2015 16:19:47 -0500 Subject: [committed] Fix failure of fortran.dg/coarray_40.f90 on hppa*-*-hpux* To: GCC Patches Message-Id: <7015C491-35F3-452E-9EE1-CB37F90691AA@bell.net> Mime-Version: 1.0 (Apple Message framework v1085) X-Opwv-CommTouchExtSvcRefID: str=0001.0A020203.5681A773.012D, ss=1, re=0.000, fgs=0 On hppa*-*-hpux*, we need to link with libatomic to get "atomic" functions. Fix is same as in other tests. Tested on hppa2.0w-hp-hpux11.11 and hppa64-hp-hpux11.11. Committed to trunk. Dave --- John David Anglin dave.anglin@bell.net 2015-12-28 John David Anglin * gfortran.dg/coarray_40.f90: Link with libatomic if available. Index: gfortran.dg/coarray_40.f90 =================================================================== --- gfortran.dg/coarray_40.f90 (revision 231978) +++ gfortran.dg/coarray_40.f90 (working copy) @@ -1,5 +1,6 @@ ! { dg-do run } -! { dg-options "-fcoarray=lib -lcaf_single" } +! { dg-options "-fcoarray=lib -lcaf_single -latomic" { target libatomic_available } } +! { dg-options "-fcoarray=lib -lcaf_single" { target { ! libatomic_available } } } ! ! Run-time test for memory consistency !