From patchwork Wed Jul 20 14:11:42 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrick Palka X-Patchwork-Id: 650693 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 3rvf453Gygz9t1Q for ; Thu, 21 Jul 2016 00:12:05 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=qEMM2HCO; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :date:to:cc:subject:in-reply-to:message-id:references :mime-version:content-type; q=dns; s=default; b=qnf66ABC+p3RM+EX xLCGeSV64dBO220oOActPkLxCAmuxyoaVFAELm2PYSe9FLO0KVVqRT3VL+GLMqbw UkRQTFBxLFWVc6tNrePbMH5eYV8c2vacGb5vjyB21fBpGoXcY6g+Y6U2acaVuw7R M26PqUFzxJ+7bIYGzP8uzo+v81A= 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:from :date:to:cc:subject:in-reply-to:message-id:references :mime-version:content-type; s=default; bh=GsTnTNKyyuqgMXlnddLudA PYBeY=; b=qEMM2HCOwIjTZ6Tta3NwWVNbh6mSikrJYKS/Wwl3WDAKh6j0OIARqh XnpcKGeIBpKM5dKBtGG+8O8PpfD9gn9mAiTSSfgyyrlbO8IUPR1EymQd04W9bhX2 gWgSieSR/uKd8GPc7e1gkOz/9ujkWpr0k6zCMg/Vi9YuCMNzm8a54= Received: (qmail 71892 invoked by alias); 20 Jul 2016 14:11:57 -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 71877 invoked by uid 89); 20 Jul 2016 14:11:56 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL, BAYES_40, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 spammy=$ar, rct, conftestc, $AR X-HELO: mail-qt0-f193.google.com Received: from mail-qt0-f193.google.com (HELO mail-qt0-f193.google.com) (209.85.216.193) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Wed, 20 Jul 2016 14:11:46 +0000 Received: by mail-qt0-f193.google.com with SMTP id j37so2335759qta.0 for ; Wed, 20 Jul 2016 07:11:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:date:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=AoYYsWpnQ7wLK7R5fm2zJ+H3X5U05a4MnwFQbmKIlFk=; b=HwZ2RztSlTv8WD3JOGABlak+cVxcoSINQEcZC7v7mXWWPScDitBdEhJQ2rfxsjYxaE eWwp0BzczkewKMKIPVoGazyGN6qxS1OHtb8kTDGuq+Na07TDhcepqOADwm/XVppZybw4 7qk+baHpmZaBqi/u6fLwJ4xHzU4RUvz7jQa1HRHEwOubuTJRRsku8jaVzjtMmW5M4yN9 rIifUaKH8Ui4b10qYZ1JlZ0qhg6R4d+9aMt+JXxnrZlY7F302Qp+rZQdzkJI2kwin0OU NydGDoqQ04mlTMv2nhmiAddSKEIJ1amfI75aG2WMkucmAFL67B2JQSd7Bb7MWi4OHhZZ OmYg== X-Gm-Message-State: ALyK8tK4LkcxNGZdfz7JUSJIrsGxs6u/PVZj6y6Gp7v3UkvYmPGgN/04mQ8+a8usfMPAYA== X-Received: by 10.200.38.107 with SMTP id v40mr18871061qtv.76.1469023904396; Wed, 20 Jul 2016 07:11:44 -0700 (PDT) Received: from [192.168.1.130] (ool-4353abbc.dyn.optonline.net. [67.83.171.188]) by smtp.gmail.com with ESMTPSA id 23sm1522076qki.1.2016.07.20.07.11.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Jul 2016 07:11:43 -0700 (PDT) From: Patrick Palka X-Google-Original-From: Patrick Palka Date: Wed, 20 Jul 2016 10:11:42 -0400 (EDT) To: Bernd Schmidt cc: Richard Biener , Patrick Palka , Segher Boessenkool , David Edelsohn , GCC Patches Subject: Re: [PATCH] Avoid invoking ranlib on libbackend.a In-Reply-To: Message-ID: References: <20160718113511.GA32392@gate.crashing.org> <20160718124406.GB14108@gate.crashing.org> User-Agent: Alpine 2.20.13 (DEB 116 2015-12-14) MIME-Version: 1.0 On Wed, 20 Jul 2016, Bernd Schmidt wrote: > On 07/19/2016 10:20 AM, Richard Biener wrote: > > I like it. Improving re-build time in my dev tree is very much > > welcome, and yes, > > libbackend build time is a big part of it usually (plus of course cc1 > > link time). > > Since that wasn't an entirely explicit ack, I'll add mine. Thank you for doing > this. > > > Bernd > > Committed as r238524 with the following minor change to the configure test to use $CFLAGS and $LDFLAGS consistently: diff --git a/gcc/configure.ac b/gcc/configure.ac index 63052ba..241e82d 100644 --- a/gcc/configure.ac +++ b/gcc/configure.ac @@ -4905,7 +4905,7 @@ echo 'int main (void) { return 0; }' > conftest.c if ($AR --version | sed 1q | grep "GNU ar" \ && $CC $CFLAGS -c conftest.c \ && $AR rcT conftest.a conftest.o \ - && $CC -o conftest conftest.a) >/dev/null 2>&1; then + && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then thin_archive_support=yes fi rm -f conftest.c conftest.o conftest.a conftest