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: 324505 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 237952C0096 for ; Thu, 27 Feb 2014 03:15:55 +1100 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:content-type:mime-version :content-transfer-encoding:subject:message-id:date:from:to:cc; q=dns; s=default; b=CeJYrIf3ykbpr0qv3DPmCPoHOCElA0Y3TrnTHs2P7QH d6TxdD9+PSjkimtVHCQgb7BsGJT8e9BeVzLmeYrRZCgDGs8zQmLxhMiv7ae8Yz0e g0m8szHNF3Dwpzj2gpLO0DPxR3WN2DGPh7uNnxKjzVXWgdPyaABQ0ONWYeGv3Vo0 = DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:content-type:mime-version :content-transfer-encoding:subject:message-id:date:from:to:cc; s=default; bh=/w/CyfkLXHwRPW9fVNn2j5tU5r0=; b=EDL9m+wWRWsJQGH1u FLtEb3Cw4Rq0brqmT2ygo9bWee+bHrqnVumwOnTH3mB9qluN07dzr3TJYxgQfie1 2neTLR2Wyq0GZsIkf21sfOz2s9hc8vm4OfmF22pJLleLZXZbJlYCcEtn5FDKA2r0 o8i0gxz/7fVh9yVJIfUfqR1J1w= Received: (qmail 12894 invoked by alias); 26 Feb 2014 16:15:47 -0000 Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org Delivered-To: mailing list crossgcc@sourceware.org Received: (qmail 12851 invoked by uid 89); 26 Feb 2014 16:15:40 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-qc0-f181.google.com Received: from mail-qc0-f181.google.com (HELO mail-qc0-f181.google.com) (209.85.216.181) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Wed, 26 Feb 2014 16:15:39 +0000 Received: by mail-qc0-f181.google.com with SMTP id c9so1597326qcz.40 for ; Wed, 26 Feb 2014 08:15:37 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:content-type:mime-version :content-transfer-encoding:subject:message-id:user-agent:date:from :to:cc; bh=kVcJmzmlkW6MKMH9Ynd3NLwH7VijBiaqZ0XOObdJQyc=; b=eTe56bZmzr0/Zqw0Ip/7KkoMIynuS8zmZfrS3S+S/liT7HSa6Elf0N7d1JCpl1GbgF SXUmm4sVvv4A657hMElIX5hty1Et8maZfq+45dYVeaYsxGJIlR9e71C2jU+J3R66pJ8F IYUC5oQ8wLr+pkoswNPGfQdU41GkBNSyVzixzHwVRAWaRrsT4dh958odvov5GVuQERr3 kdP/RtMf2sh45kgUiqT2lB8FOZjSqDjwBHknYIWKseyxEIE/E3G2tdXvIJdEytYKWVwI iYmLTnvsGWitPKzT5l7T2QzdGk/LLMI/Vv+UI8YSdYVkdyELcbneRrqELLJi0YUAQv42 +kZw== X-Gm-Message-State: ALoCoQl84rTx5PzD/WhVwYMNIbF+7+o9xdoXQxzKGwjjXy8eFvvasPRXw+R3B4Ri7RncHcIuUnB2 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-IsSubscribed: yes # 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 --- For unsubscribe information see http://sourceware.org/lists.html#faq 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}" )