From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12425 invoked by alias); 7 Jan 2015 15:03:32 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 12381 invoked by uid 48); 7 Jan 2015 15:03:29 -0000 From: "hp at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug testsuite/62250] FAIL: gfortran.dg/coarray/alloc_comp_1.f90 -fcoarray=lib -O2 -lcaf_single Date: Wed, 07 Jan 2015 15:03:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: testsuite X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hp at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-01/txt/msg00378.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62250 --- Comment #8 from Hans-Peter Nilsson --- Created attachment 34394 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34394&action=edit Patch to add -latomic only when available; -p0 -d path/to/gcc/testsuite David, could you please check if the attached patch still works for hppa*-*-hpux*? I've verified that it fixes the regressions I see (cross to cris-elf; a system without a -latomic port and where the operations are built-in) and that -latomic is still added for a native x86_64-unknown-linux-gnu build, with tests still passing. Though, as -latomic is redundant on that last system, I haven't actually tested it on a system where -latomic is *required*; the point if this PR (and BTW sorry for being lazy and hijacking it - a pointer to a new PR would have been more appropriate).