From patchwork Fri Jan 1 18:13:50 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Stump X-Patchwork-Id: 562039 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 E4700140B9C for ; Sat, 2 Jan 2016 05:16:05 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=BWOfuI9D; 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:content-transfer-encoding:subject:message-id:date :to:mime-version; q=dns; s=default; b=stvrrLUqu+1KPLcBPDb15YmQmD F9o1Z8AoEaLVSi6DQ0Rj++5GPYERPsmLthUMiaky7w58sA230PVgYZRZP7n1b7it PXFsJuM3G09eRrjzAYRRRgqLJUomonzztebnN+p6T0sDRZ5VStzoMuBeymc1f1i3 1JKhC3rYc0kC4B0kw= 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:content-transfer-encoding:subject:message-id:date :to:mime-version; s=default; bh=GbsHVPVfsNYAaG5FriyI6zORRWE=; b= BWOfuI9DdBmRosCocvlMDTv7JGxy4Vru8S6AsRhgaI5c+/KwUY6RZCMk2RHd9GQ7 EHh2tzNAYlf4l5DRaISPigDKWOTSvV6ykZZVAVcqTLH7c5Z2m5KeK4/FoOZ00EOJ B3krMGEFWbrMV9tYt3GAYMqusMixSzjvMOYVXLEkYMU= Received: (qmail 33248 invoked by alias); 1 Jan 2016 18:15:59 -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 33233 invoked by uid 89); 1 Jan 2016 18:15:58 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: resqmta-po-04v.sys.comcast.net Received: from resqmta-po-04v.sys.comcast.net (HELO resqmta-po-04v.sys.comcast.net) (96.114.154.163) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Fri, 01 Jan 2016 18:15:57 +0000 Received: from resomta-po-01v.sys.comcast.net ([96.114.154.225]) by resqmta-po-04v.sys.comcast.net with comcast id 0iFa1s0044s37d401iFv75; Fri, 01 Jan 2016 18:15:55 +0000 Received: from [IPv6:2001:558:6045:a4:40c6:7199:cd03:b02d] ([IPv6:2001:558:6045:a4:40c6:7199:cd03:b02d]) by resomta-po-01v.sys.comcast.net with comcast id 0iFu1s0082ztT3H01iFvDT; Fri, 01 Jan 2016 18:15:55 +0000 From: Mike Stump Subject: cilkplus fails without pthreads for me Message-Id: <77D1E479-4C62-4764-BD62-FB9D9BF89473@comcast.net> Date: Fri, 1 Jan 2016 10:13:50 -0800 To: GCC Patches Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) X-IsSubscribed: yes cilkplus fails without pthreads for me: xg++: error: unrecognized command line option '-pthread' compiler exited with status 1 output is: xg++: error: unrecognized command line option '-pthread' FAIL: c-c++-common/attr-simd-3.c -std=gnu++14 PR68158 (test for errors, line 5) I suspect pthreads is a fairly hard requirement. Either a test compile and link needs to be done, or we need to be able to whack out the tests on non-pthread systems. Ok? diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 144e4e9..6d25666 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -1450,6 +1450,10 @@ proc check_effective_target_cilkplus { } { return 0; } + if { ! [check_effective_target_pthread] } { + return 0; + } + return 1 }