From patchwork Thu May 23 05:53:57 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chung-Ju Wu X-Patchwork-Id: 245821 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 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "localhost", Issuer "www.qmailtoaster.com" (not verified)) by ozlabs.org (Postfix) with ESMTPS id EC55C2C007C for ; Thu, 23 May 2013 15:54:12 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; q=dns; s=default; b=GNhvqPzj5pWzFa3gT7 dPtNlFRIz5v7aQP57PqlttsU0c2jnCznkV4lkfo3xbiTAgYJSgfzsb0cTyq3d/Ld ocb0sljfO1Dka+X3We/iU9ICqFsvAjIYO9D34KgScGUooCoXh6qozbmK5KxNk8Vk ZJglzZM0fRzght4aYUW6BKwyU= 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 :mime-version:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; s=default; bh=qR2zt/Sa2uAZidoEEmSmGeij WTM=; b=NY0udr+O7ijij7E6R9y+Nicx2ZMDdIYh1wfIX6PVRCPnJ2Ei8kWCmq8d NomIeznfXV36TgJqgpBCygbcpNSMN5VKNr5KH4P0/eIX4sk8WhK3zsuEUw3PPzPC dDu11Wf4qvhVI1sUwNmAlDsVR5D/Wyc75Sv4XN8cQZaeT8D78MQ= Received: (qmail 26705 invoked by alias); 23 May 2013 05:54:00 -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 26665 invoked by uid 89); 23 May 2013 05:54:00 -0000 X-Spam-SWARE-Status: No, score=-3.5 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, KHOP_THREADED, RCVD_IN_DNSWL_LOW, RCVD_IN_HOSTKARMA_YE, SPF_PASS, TW_UC, TW_XJ, TW_XZ autolearn=ham version=3.3.1 Received: from mail-pb0-f47.google.com (HELO mail-pb0-f47.google.com) (209.85.160.47) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Thu, 23 May 2013 05:53:59 +0000 Received: by mail-pb0-f47.google.com with SMTP id rr4so2505638pbb.34 for ; Wed, 22 May 2013 22:53:57 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.68.250.229 with SMTP id zf5mr11094822pbc.148.1369288437512; Wed, 22 May 2013 22:53:57 -0700 (PDT) Received: by 10.68.143.227 with HTTP; Wed, 22 May 2013 22:53:57 -0700 (PDT) In-Reply-To: References: <519C7CF3.8030500@gnu.org> Date: Thu, 23 May 2013 13:53:57 +0800 Message-ID: Subject: Re: [Patch] Extend script ./contrib/download_prerequisites usage for isl and cloog From: Chung-Ju Wu To: Bernhard Reutner-Fischer Cc: Paolo Bonzini , Andrew Haley , gcc patches 2013/5/23 Bernhard Reutner-Fischer : > > On 22 May 2013 10:08, "Paolo Bonzini" wrote: >> >> Il 18/05/2013 04:37, Chung-Ju Wu ha scritto: >> > Hi all, >> > [...] >> > +# Necessary to build GCC with the Graphite loop optimizations. >> > +if [ "$GRAPHITE_LOOP_OPT" == "yes" ] ; then > > s/==/=/g > > Thanks, > [...] >> > + >> > + rm $ISL.tar.bz2 $CLOOG.tar.gz || exit 1 >> >> I would leave the tar files in place. Otherwise ok. >> >> Paolo >> The patch is revised accordingly as follows: - The tar files, including gmp/mpfr/mpc/isl/cloog, are left under directory. - In the shell script, we should use '=' as equality comparison operator. Thanks for the review comments and Paolo's approval. I will commit it tomorrow as long as there are no other comments or objections. contrib/ChangeLog 2013-05-23 Chung-Ju Wu * download_prerequisites: Download isl and cloog conditionally. Best regards, jasonwucj Index: contrib/download_prerequisites =================================================================== --- contrib/download_prerequisites (revision 199233) +++ contrib/download_prerequisites (working copy) @@ -19,6 +19,12 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see http://www.gnu.org/licenses/. +# If you want to build GCC with the Graphite loop optimizations, +# set GRAPHITE_LOOP_OPT=yes to download optional prerequisties +# ISL Library and CLooG. +GRAPHITE_LOOP_OPT=no + +# Necessary to build GCC. MPFR=mpfr-2.4.2 GMP=gmp-4.3.2 MPC=mpc-0.8.1 @@ -35,4 +41,16 @@ tar xzf $MPC.tar.gz || exit 1 ln -sf $MPC mpc || exit 1 -rm $MPFR.tar.bz2 $GMP.tar.bz2 $MPC.tar.gz || exit 1 +# Necessary to build GCC with the Graphite loop optimizations. +if [ "$GRAPHITE_LOOP_OPT" = "yes" ] ; then + ISL=isl-0.11.1 + CLOOG=cloog-0.18.0 + + wget ftp://gcc.gnu.org/pub/gcc/infrastructure/$ISL.tar.bz2 || exit 1 + tar xjf $ISL.tar.bz2 || exit 1 + ln -sf $ISL isl || exit 1 + + wget ftp://gcc.gnu.org/pub/gcc/infrastructure/$CLOOG.tar.gz || exit 1 + tar xzf $CLOOG.tar.gz || exit 1 + ln -sf $CLOOG cloog || exit 1 +fi