From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 67477 invoked by alias); 24 Jul 2019 15:46:02 -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 67297 invoked by uid 89); 24 Jul 2019 15:45:45 -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= 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; Wed, 24 Jul 2019 15:45:43 +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 5FDDB30ADC7F; Wed, 24 Jul 2019 15:45:30 +0000 (UTC) Received: from localhost.localdomain (ovpn-112-8.rdu2.redhat.com [10.10.112.8]) by smtp.corp.redhat.com (Postfix) with ESMTP id D96FE60603; Wed, 24 Jul 2019 15:45:28 +0000 (UTC) Subject: Re: [PATCH] Deduce automatically number of cores for -flto option. To: =?UTF-8?Q?Martin_Li=c5=a1ka?= , Jan Hubicka 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: <69d3f527-4086-da6c-e789-469dc389d9eb@redhat.com> Date: Wed, 24 Jul 2019 15:47: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: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2019-07/txt/msg01589.txt.bz2 On 7/23/19 4:15 AM, Martin Liška wrote: > On 7/23/19 11:20 AM, Jan Hubicka wrote: >> Hi, >> great you found time to make this. It should become the default for >> -flto IMO. > > Works for me. Then I'm suggesting to not come up with -flto=auto and > only document that -flto passed during linking will automatically detect > number of cores. It's the same what clang does. This variant is fine too. Same caveats apply with the non-linux hosts. jeff