From patchwork Wed Feb 18 07:47:49 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Thomas Schwinge X-Patchwork-Id: 440813 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 00FA7140142 for ; Wed, 18 Feb 2015 18:48:15 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-type; q=dns; s=default; b=ciRkjH3z8Lo4MuCk sBKoyt6wGJckKX5ARNHzrzI8fACVy68HfU/4oH7tI9ES5Rvdbd/TjGJSN5U5wZgj aVmueGkW/eyXU71RhpFXyWQjiwTtXVgAIpITbiuClgHl6uvjhObyUbJg8dX8FEK3 rBEV1dVXfUYGAAEpiWQXueh2AP0= 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 :to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-type; s=default; bh=gVi/z4wYinz26fxbxzYp2Q xVrGw=; b=YrD0MWRxHelOr8f2lyaEL7aUR2fg+VAk094Nb4rDtkcrGm05vJIrif 5YV78/Qz5SIuosbxnOIb/XfTO2U4qqPfMNh31877dh9dOCBHKnfk2mGvUxFrlgJO VTrYxkS6kP6MW8b7Ok+E8+x1doMIwcbCKteK5rGSASfyiJNONsm3g= Received: (qmail 8864 invoked by alias); 18 Feb 2015 07:48:07 -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 8855 invoked by uid 89); 18 Feb 2015 07:48:06 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=AWL, BAYES_50, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 18 Feb 2015 07:48:04 +0000 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=SVR-IES-FEM-03.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1YNzMW-0001Z3-JX from Thomas_Schwinge@mentor.com for gcc-patches@gcc.gnu.org; Tue, 17 Feb 2015 23:48:01 -0800 Received: from feldtkeller.schwinge.homeip.net (137.202.0.76) by SVR-IES-FEM-03.mgc.mentorg.com (137.202.0.108) with Microsoft SMTP Server id 14.3.224.2; Wed, 18 Feb 2015 07:47:58 +0000 From: Thomas Schwinge To: GCC Patches CC: Bernd Schmidt Subject: nvptx-none: Define empty GOMP_SELF_SPECS (was: The nvptx port [0/11+]) In-Reply-To: <54451994.9070209@codesourcery.com> References: <54451994.9070209@codesourcery.com> User-Agent: Notmuch/0.9-101-g81dad07 (http://notmuchmail.org) Emacs/24.4.1 (i586-pc-linux-gnu) Date: Wed, 18 Feb 2015 08:47:49 +0100 Message-ID: <87oaorfyoq.fsf@kepler.schwinge.homeip.net> MIME-Version: 1.0 Hi! On Mon, 20 Oct 2014 16:17:56 +0200, Bernd Schmidt wrote: > This is a patch kit that adds the nvptx port to gcc. I wonder why we haven't been seeing this in our internal development branch -- maybe because on that branch we're still discarding more compiler options in the offloading path? Committed to trunk in r220780: commit 2fdc66a9fcfbc5b77c1c03d7c34893a0a086e8f8 Author: tschwinge Date: Wed Feb 18 07:45:42 2015 +0000 nvptx-none: Define empty GOMP_SELF_SPECS. Otherwise, offloading with -fopenacc or -fopenmp active will run into: x86_64-unknown-linux-gnu-accel-nvptx-none-gcc: error: unrecognized command line option '-pthread' gcc/ * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@220780 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 4 ++++ gcc/config/nvptx/nvptx.h | 4 ++++ 2 files changed, 8 insertions(+) Grüße, Thomas diff --git gcc/ChangeLog gcc/ChangeLog index 2c75df6..180a605 100644 --- gcc/ChangeLog +++ gcc/ChangeLog @@ -1,3 +1,7 @@ +2015-02-18 Thomas Schwinge + + * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro. + 2015-02-18 Andrew Pinski Naveen H.S diff --git gcc/config/nvptx/nvptx.h gcc/config/nvptx/nvptx.h index 9a9954b..e74d16f 100644 --- gcc/config/nvptx/nvptx.h +++ gcc/config/nvptx/nvptx.h @@ -33,6 +33,10 @@ builtin_define ("__nvptx__"); \ } while (0) +/* Avoid the default in ../../gcc.c, which adds "-pthread", which is not + supported for nvptx. */ +#define GOMP_SELF_SPECS "" + /* Storage Layout. */ #define BITS_BIG_ENDIAN 0