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: 324484 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 D4D9D2C0040 for ; Thu, 27 Feb 2014 03:00:57 +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=KhB+pDv5NDVuBnqr9gl4bRydo2CaSpdvIhX3vb2BJ2J Hwn6362Zs7pv+BF6YT7FL0A/YAmAvr2Fmhh32WZb11WgYl4jl9GZ+6khHWPZUksG lPY9ujTVRJd6R05nOL8UOe9//+oi0VA8FfILA0bpiWc5giec9R7dq2xJGjOF59Lo = 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=I30BzyyP9dWdv8GcFr3a9zz5I2A=; b=AP2+VkYIYD2aoZICg IF9tiz3pBnqP6LGSNVfak5p8uEkmZoNxwInzdERHAByzNESJR/oX2Hu+eutcTYEo sFtaKBJ7gmd1i/SB0OVpKzZwjDfgFjGtdmOtF285FCj5+uQ7Uy9i3ifl5WiXh+GO 4hvxrY1b48J/A5c6Jslrpf0i5Q= Received: (qmail 32279 invoked by alias); 26 Feb 2014 16:00:48 -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 32268 invoked by uid 89); 26 Feb 2014 16:00:47 -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-f174.google.com Received: from mail-qc0-f174.google.com (HELO mail-qc0-f174.google.com) (209.85.216.174) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Wed, 26 Feb 2014 16:00:46 +0000 Received: by mail-qc0-f174.google.com with SMTP id x13so925233qcv.5 for ; Wed, 26 Feb 2014 08:00:44 -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=8Od9bar8YejIxakkS8Nm6n9H0tV0E26G1xYN9GrnoLc=; b=XxBQ4Vb099DWfDKvI4JTujaXX1EHCrXZwix4iAuzsylUfCXiJ/QbMmSWqEf8110/LB HUAl13yoW+BUvu4/dmD+oIiMOeBx4ZwJSzf6fTm9WJNiYsgxv4yHionfE1A4Hm6E41Un mAtrJtXtDlWa2BQPxTXNwPvVKffUh5zXJWOVuDAgSPxBngvQbYExqqox62jIkiVcIywr 5fb+8EQl9COOkK8XyAiO5d1ueckq8AItiXGvG1bL/MyiyO91zytc5UZBiGKvhRq04DGQ srWPqAXUtgDUXp+cHVorbCz7ToniNbO6IR7vAfRqWnz39vqx5h87+VO7Me65zKwRWtqr iwUg== X-Gm-Message-State: ALoCoQkajtxCXDuRrtTyYdjS8u7svR21S4D6ixqw10BdA6KBKDAPJocdXca1M1NNb+dDibyOKTTa 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-IsSubscribed: yes # 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. --- For unsubscribe information see http://sourceware.org/lists.html#faq 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}" )