From patchwork Fri Nov 29 12:27:35 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bernd Schmidt X-Patchwork-Id: 295295 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)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 962652C00B3 for ; Fri, 29 Nov 2013 23:28:13 +1100 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:cc:subject:references :in-reply-to:content-type; q=dns; s=default; b=XMcdf2gKlTu/PYW+Q ul1LGlUbZP4x+lB+7W9XoaA+xOGxuDUvTdZE4rTysknaMav8IgWbZJorKvFqN368 4+CVNeBnb9yTZ/vsn85KDjEsmDCYUSUV5RzRG2yauYkh1+ckME/EqCaWnGOqtikH vHd5jLaAdM21pBTtxRY/p1N1Fs= 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 :message-id:date:from:mime-version:to:cc:subject:references :in-reply-to:content-type; s=default; bh=1/t6tMBwedQuCBkQaeDacOl kq2k=; b=m6UqgTVUmoDGXFGIPeMmbLmOSfXLe0aAY0klUzFWxZZSyVuaxTy+Lrl 1sRSaDygRag0DLUDKpGfaHibMtDmY++K9BKKll0u6Xas48IuA61pJxDmr9At5CQl ymrnb8huN5UPJFkzUiSjUAup6hl+5DrDe5H3umWqhxhbFTSSxcnY= Received: (qmail 14446 invoked by alias); 29 Nov 2013 12:28:01 -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 14435 invoked by uid 89); 29 Nov 2013 12:28:00 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.7 required=5.0 tests=AWL, BAYES_40, RDNS_NONE, URIBL_BLOCKED autolearn=no version=3.3.2 X-HELO: relay1.mentorg.com Received: from Unknown (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 29 Nov 2013 12:27:59 +0000 Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1VmNAd-0000d4-CJ from Bernd_Schmidt@mentor.com ; Fri, 29 Nov 2013 04:27:43 -0800 Received: from SVR-IES-FEM-01.mgc.mentorg.com ([137.202.0.104]) by SVR-ORW-EXC-10.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Fri, 29 Nov 2013 04:27:43 -0800 Received: from [127.0.0.1] (137.202.0.76) by SVR-IES-FEM-01.mgc.mentorg.com (137.202.0.104) with Microsoft SMTP Server id 14.2.247.3; Fri, 29 Nov 2013 12:27:41 +0000 Message-ID: <52988837.9050706@codesourcery.com> Date: Fri, 29 Nov 2013 13:27:35 +0100 From: Bernd Schmidt User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130926 Thunderbird/17.0.9 MIME-Version: 1.0 To: Jakub Jelinek CC: Richard Biener , Ilya Tocar , "Michael V. Zolotukhin" , Kirill Yukhin , gcc , Richard Henderson , Jan Hubicka , Nathan Sidwell , Thomas Schwinge Subject: [1/4] Add --enable-accelerator option References: <20130925132924.GA122388@msticlxl7.ims.intel.com> <20130926172127.GA41768@msticlxl7.ims.intel.com> <20131003160507.GA116670@msticlxl7.ims.intel.com> <20131114095226.GA128413@msticlxl7.ims.intel.com> <20131119095829.GA19301@msticlxl7.ims.intel.com> <20131120093615.GF892@tucnak.redhat.com> <529885F4.2040305@codesourcery.com> In-Reply-To: <529885F4.2040305@codesourcery.com> This one is small and pretty self-explanatory. Bernd 2013-09-05 Nathan Sidwell * configure.ac: Add --enable-accelerator. * configure: Rebuilt. Index: gomp-4_0-branch/configure.ac =================================================================== --- gomp-4_0-branch.orig/configure.ac +++ gomp-4_0-branch/configure.ac @@ -286,6 +286,26 @@ case ${with_newlib} in yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;; esac +# Handle --enable-accelerator. This is in top-level because both libgoacc and +# GCC proper need this information. +# --disable-accelerator +# Default. Do not build accelerator pieces, only support host execution. +# --enable-accelerator=device-triplet +# Build accelerator pieces for 'device-triplet' +AC_ARG_ENABLE(accelerator, +[AS_HELP_STRING([[--enable-accelerator[=ARG]]], + [build accelerator @<:@ARG={no,device-triplet}@:>@])], +ENABLE_ACCELERATOR=$enableval, +ENABLE_ACCELERATOR=no) +case "${ENABLE_ACCELERATOR}" in + yes) AC_MSG_ERROR([--enable-accelerators must name accelerator]) ;; + no) ;; + nvptx) + # validate target ok here? + ;; + *) AC_MSG_ERROR([unrecognized accelerator]) ;; +esac + # Handle --enable-gold, --enable-ld. # --disable-gold [--enable-ld] # Build only ld. Default option.