From patchwork Wed Feb 26 16:00:36 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Trevor Woerner X-Patchwork-Id: 25363 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f70.google.com (mail-oa0-f70.google.com [209.85.219.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2180820636 for ; Wed, 26 Feb 2014 16:00:46 +0000 (UTC) Received: by mail-oa0-f70.google.com with SMTP id n16sf3767431oag.9 for ; Wed, 26 Feb 2014 08:00:45 -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=8Od9bar8YejIxakkS8Nm6n9H0tV0E26G1xYN9GrnoLc=; b=Bf92NcstW1gthtRcAIGTJHkWJ4+1hJFogjhtKD2Py7xlqHMBq1GteWhHqWHeyvcFDy 5scWDfVvITg1n77en6PpC7WpWuFUF6LKSJp9HoMeg4s1N7tUM2f1gxoaic4R6TVCa06i d4fAJ786N0IVK84eFDDBtl1MKzOFPHn122RhGytH0/f503LD7dRJIIeFnBnrMlB6/MZO 4zj8DkGxHkH6GUr62o93yfQTIbyp55lBtg57RI+uSNJzpjBBA9U+rMnLqN0Tznx0om/J BoGZ3ctcFJ4xBIp3bqVTx2+tAqNebHuFOxiaSWV+EQpiDQs0JKDTgeeQoy5TjS6/2zTb P53w== X-Gm-Message-State: ALoCoQnAE/Mwqky+4r1egg7Z4g8XFUcrkSOz0IuIY+h+T52WhfAmi43yhdO9+sSJiUe+uuBJWxJd X-Received: by 10.50.129.74 with SMTP id nu10mr14992823igb.7.1393430445484; Wed, 26 Feb 2014 08:00:45 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.22.7 with SMTP id 7ls258178qgm.46.gmail; Wed, 26 Feb 2014 08:00:45 -0800 (PST) X-Received: by 10.52.30.230 with SMTP id v6mr5488715vdh.6.1393430445222; Wed, 26 Feb 2014 08:00:45 -0800 (PST) Received: from mail-ve0-f174.google.com (mail-ve0-f174.google.com [209.85.128.174]) by mx.google.com with ESMTPS id ru8si226347vcb.104.2014.02.26.08.00.45 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 26 Feb 2014 08:00:45 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.174 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.174; Received: by mail-ve0-f174.google.com with SMTP id oy12so2378081veb.33 for ; Wed, 26 Feb 2014 08:00:45 -0800 (PST) X-Received: by 10.52.168.39 with SMTP id zt7mr599663vdb.42.1393430445134; Wed, 26 Feb 2014 08:00:45 -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 u4csp36160vcz; Wed, 26 Feb 2014 08:00:44 -0800 (PST) X-Received: by 10.140.108.138 with SMTP id j10mr176736qgf.7.1393430444230; Wed, 26 Feb 2014 08:00:44 -0800 (PST) Received: from mail-qa0-f48.google.com (mail-qa0-f48.google.com [209.85.216.48]) by mx.google.com with ESMTPS id bf1si329833qcb.20.2014.02.26.08.00.44 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 26 Feb 2014 08:00:44 -0800 (PST) Received-SPF: neutral (google.com: 209.85.216.48 is neither permitted nor denied by best guess record for domain of trevor.woerner@linaro.org) client-ip=209.85.216.48; Received: by mail-qa0-f48.google.com with SMTP id o15so2518224qap.7 for ; Wed, 26 Feb 2014 08:00:44 -0800 (PST) X-Received: by 10.140.100.181 with SMTP id s50mr3257207qge.113.1393430442893; Wed, 26 Feb 2014 08:00:42 -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 a5sm3738854qae.2.2014.02.26.08.00.41 for (version=SSLv3 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 26 Feb 2014 08:00:42 -0800 (PST) MIME-Version: 1.0 Subject: [PATCH] gcc: skip core pass 1 when it is unnecessary X-Mercurial-Node: 76f3ac3697f23244c6246e87081ba452230d35f1 Message-Id: <76f3ac3697f23244c624.1393430436@openSUSE-i7> User-Agent: Mercurial-patchbomb/2.7.1 Date: Wed, 26 Feb 2014 11:00:36 -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.174 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 1393430367 18000 # Wed Feb 26 10:59:27 2014 -0500 # Node ID 76f3ac3697f23244c6246e87081ba452230d35f1 # Parent c727adf1b7bd2c1e891db512871dbe7b26797fa6 gcc: skip core pass 1 when it is unnecessary If neither Linux headers nor 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. diff -r c727adf1b7bd -r 76f3ac3697f2 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 10:59:27 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}" )