From patchwork Wed Feb 26 16:15:31 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Trevor Woerner X-Patchwork-Id: 25364 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f199.google.com (mail-vc0-f199.google.com [209.85.220.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 4DF5420636 for ; Wed, 26 Feb 2014 16:15:38 +0000 (UTC) Received: by mail-vc0-f199.google.com with SMTP id hu8sf2593226vcb.6 for ; Wed, 26 Feb 2014 08:15:38 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:mime-version:subject:message-id :user-agent:date:from:to:cc:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe:content-type :content-transfer-encoding; bh=kVcJmzmlkW6MKMH9Ynd3NLwH7VijBiaqZ0XOObdJQyc=; b=ENs/xcnh1sEcQ1S5lJkw2LVSi8FlUfYFppEtYa6ZIh7nMp7gAFiY1LzYMnBDBDLQow 9Em0n6afOu+Oz/h2on9I0nL5KIA2UvPctG1VjAW8gZ03VO+ZdL6FJNbnoQ1AnEA1qAED u9VtdXoVT31wfR+voGwjAUiR+GdtetwXZMKiH8nA/4OpiawS6geTtFY4DbqC9kb0xXSD wbgZ+lZNE7fNL/Yj5Ea9940dabXfDwJcMcgfO/B9RYZH60TcoiXY+7CgqjN7+6B+0q38 4rslNALxDBCP/K5HK4WNXr0toopnzebcepA03alsnF/R/8RFLZ5Vxvbt2gaB8dee6uYk BdXA== X-Gm-Message-State: ALoCoQn8/Tqj6W/xC+oMN62+bRbkVGLi+mahIPKSr+6/r1pHyy/GabxOKLOR8wriGRdn/3gYmScA X-Received: by 10.236.90.200 with SMTP id e48mr2772591yhf.28.1393431338055; Wed, 26 Feb 2014 08:15:38 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.106.71 with SMTP id d65ls354042qgf.60.gmail; Wed, 26 Feb 2014 08:15:37 -0800 (PST) X-Received: by 10.220.159.4 with SMTP id h4mr6640557vcx.1.1393431337860; Wed, 26 Feb 2014 08:15:37 -0800 (PST) Received: from mail-ve0-f177.google.com (mail-ve0-f177.google.com [209.85.128.177]) by mx.google.com with ESMTPS id yx7si341539vcb.50.2014.02.26.08.15.37 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 26 Feb 2014 08:15:37 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.177 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.177; Received: by mail-ve0-f177.google.com with SMTP id db12so2352017veb.8 for ; Wed, 26 Feb 2014 08:15:37 -0800 (PST) X-Received: by 10.221.55.133 with SMTP id vy5mr6555363vcb.17.1393431337785; Wed, 26 Feb 2014 08:15:37 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp37441vcz; Wed, 26 Feb 2014 08:15:37 -0800 (PST) X-Received: by 10.224.98.139 with SMTP id q11mr9302840qan.64.1393431337224; Wed, 26 Feb 2014 08:15:37 -0800 (PST) Received: from mail-qc0-f181.google.com (mail-qc0-f181.google.com [209.85.216.181]) by mx.google.com with ESMTPS id x6si759305qas.154.2014.02.26.08.15.37 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 26 Feb 2014 08:15:37 -0800 (PST) Received-SPF: neutral (google.com: 209.85.216.181 is neither permitted nor denied by best guess record for domain of trevor.woerner@linaro.org) client-ip=209.85.216.181; Received: by mail-qc0-f181.google.com with SMTP id c9so1647219qcz.12 for ; Wed, 26 Feb 2014 08:15:37 -0800 (PST) X-Received: by 10.140.94.113 with SMTP id f104mr420519qge.64.1393431336945; Wed, 26 Feb 2014 08:15:36 -0800 (PST) Received: from [127.0.0.1] (69-165-220-158.dsl.teksavvy.com. [69.165.220.158]) by mx.google.com with ESMTPSA id y71sm498380qgd.3.2014.02.26.08.15.35 for (version=SSLv3 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 26 Feb 2014 08:15:36 -0800 (PST) MIME-Version: 1.0 Subject: [PATCH] gcc: skip core pass 1 when it is unnecessary X-Mercurial-Node: e9f99d9bd902414c8e3f3c6fc36c0fc67f3a7593 Message-Id: User-Agent: Mercurial-patchbomb/2.7.1 Date: Wed, 26 Feb 2014 11:15:31 -0500 From: Trevor Woerner To: "Yann E. MORIN" Cc: crossgcc@sourceware.org, patches@linaro.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: trevor.woerner@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.177 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , # HG changeset patch # User Trevor Woerner # Date 1393431218 18000 # Wed Feb 26 11:13:38 2014 -0500 # Node ID e9f99d9bd902414c8e3f3c6fc36c0fc67f3a7593 # Parent c727adf1b7bd2c1e891db512871dbe7b26797fa6 gcc: skip core pass 1 when it is unnecessary If neither the Linux headers nor the libc start files are required, skip gcc's core pass 1 since the build will simply move from pass 1 to pass 2 without doing any work in between. Signed-off-by: Trevor Woerner diff -r c727adf1b7bd -r e9f99d9bd902 scripts/build/cc/gcc.sh --- a/scripts/build/cc/gcc.sh Tue Feb 25 13:34:48 2014 -0500 +++ b/scripts/build/cc/gcc.sh Wed Feb 26 11:13:38 2014 -0500 @@ -88,6 +88,14 @@ return 0 fi + # skip gcc pass 1 if there are no Linux kernel headers + # nor libc start files to build/process + if [ "${CT_LIBC}" = "none" -o "${CT_LIBC}" = "newlib" ]; then + if [ "${CT_BARE_METAL}" = "y" ]; then + return 0 + fi + fi + core_opts+=( "mode=static" ) core_opts+=( "host=${CT_BUILD}" ) core_opts+=( "complibs=${CT_BUILDTOOLS_PREFIX_DIR}" )