From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22899 invoked by alias); 9 Aug 2019 08:19:43 -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 22890 invoked by uid 89); 9 Aug 2019 08:19:43 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=HX-Languages-Length:800 X-HELO: mail-lf1-f67.google.com Received: from mail-lf1-f67.google.com (HELO mail-lf1-f67.google.com) (209.85.167.67) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 09 Aug 2019 08:19:42 +0000 Received: by mail-lf1-f67.google.com with SMTP id c9so68858540lfh.4 for ; Fri, 09 Aug 2019 01:19:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=dnZbehqImP6VkBBgg2ztKqhAVb48uk02r22AwRXMqk8=; b=eKinT8YjzS0Mxg8OJkCRRC6sMP8RjjFM21K8u+JZ7b7aAjUuZLnt/RChi+Yfunby8i +cyG5NLcANkyWX8GaCV+s68MID58q9AbI8CI0PuTD0ciu5Ve3H4GR7RQb+F85B8kJlGg zaDDcIqHjOeaQRnuLT5TY+QDaNXY04HADmbQKQ9OtTZkJgRGQFlulLiasEuBzvifpc3t qjmEXY3tf29/LpWoe4fTAr0XZCX/R3um4khseE4lm5RCSeRMQz1Ye0nVW4qla7JwCC8o lJb+DjgDm/9wn3LMC+WGkgKJ29kqQzxgG0GYw03pJ+qXiPO79IV7UEASszOBoQOrTWBo wDew== MIME-Version: 1.0 References: <20190801131932.GA2726@tucnak> <089f4b9d-a29a-5031-a272-e005cb5ce78c@suse.cz> <20190801144126.GC2726@tucnak> <20190802074450.GG2726@tucnak> <20190802085001.GK2726@tucnak> <20190802091543.spbiwrpkfgmc3wil@kam.mff.cuni.cz> <0221cd30-5ce4-624f-afe5-15525092821a@suse.cz> <4f1d75bf-7c75-6463-b8f1-9e37aab3f69a@suse.cz> In-Reply-To: From: Richard Biener Date: Fri, 09 Aug 2019 08:22:00 -0000 Message-ID: Subject: Re: [PATCH] Properly detect working jobserver in gcc driver. To: =?UTF-8?Q?Martin_Li=C5=A1ka?= Cc: Jan Hubicka , Jakub Jelinek , Jeff Law , GCC Patches , Michael Matz Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2019-08/txt/msg00610.txt.bz2 On Fri, Aug 9, 2019 at 10:11 AM Martin Li=C5=A1ka wrote: > > I'm sending slightly updated version of the patch > where I allow -flto=3Dauto in common_handle_option. +One can also use @option{-flto=3Dauto} to either use GNU make's +job server mode to determine the number of parallel jobs, if available. +Or the default value for @var{n} is automatically detected based +on number of cores. "Use @option{-flto=3Dauto} to use GNU make's job server, if available, or otherwise fall back to autodetection of the number of CPU threads present in your system." OK with that. I still think that making -flto use a jobserver if detected (but _not_ use the number of CPU cores by default) makes sense as an independent change. > Martin