From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 104288 invoked by alias); 23 Jul 2019 13:09:35 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 104280 invoked by uid 89); 23 Jul 2019 13:09:35 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS autolearn=ham version=3.3.1 spammy=HX-Languages-Length:680 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 23 Jul 2019 13:09:34 +0000 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id DFB794E92A; Tue, 23 Jul 2019 13:09:32 +0000 (UTC) Received: from localhost.localdomain (ovpn-112-9.rdu2.redhat.com [10.10.112.9]) by smtp.corp.redhat.com (Postfix) with ESMTP id A55C560603; Tue, 23 Jul 2019 13:09:31 +0000 (UTC) Subject: Re: [PATCH] Come up with -flto=auto option. To: Jan Hubicka , =?UTF-8?Q?Martin_Li=c5=a1ka?= Cc: gcc-patches@gcc.gnu.org, Michael Matz , Richard Biener References: <95f20c0a-81a3-2319-326b-3c5baf71e2d1@suse.cz> <20190723092040.czs64os2qymax7sq@kam.mff.cuni.cz> From: Jeff Law Openpgp: preference=signencrypt Message-ID: <7b383b21-89ad-52ed-1fb1-e44723e8be86@redhat.com> Date: Tue, 23 Jul 2019 13:13:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <20190723092040.czs64os2qymax7sq@kam.mff.cuni.cz> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2019-07/txt/msg01512.txt.bz2 On 7/23/19 3:20 AM, Jan Hubicka wrote: >> Hi. >> >> As we as openSUSE started using -flto, I see it very handy to have >> an option value that will automatically detect number of cores >> that can be used for parallel LTRANS phase. >> >> Thoughts? > Hi, > great you found time to make this. It should become the default for > -flto IMO. I was going to hack it into the rpm configury bits since we have access to the # cores there. But an auto-selector within GCC is even better. BTW, isn't this all going to wreck havoc with reproducible builds since partitioning can affect code generation? That's one of our open questions... Jeff