Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1763468ybe; Sat, 7 Sep 2019 02:24:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqwflZ1NkbSp4RHJy4vy6jKRf9eAHdU1vIvxTMnqXqVNuqg10/MSZ7mrZ0rzmU9GNPgFqU2I X-Received: by 2002:a62:d445:: with SMTP id u5mr15927679pfl.92.1567848240684; Sat, 07 Sep 2019 02:24:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567848240; cv=none; d=google.com; s=arc-20160816; b=n1/mtTNPV8IKXyoiivt4ctFKZwHa5uSTn3yXLw9IxFf4Qdj4PEdFqPTpls4oAdn7AR USI07N4Wsiihe05+BooDXECQcfC/V3QLsC+6aAig9v7TZYIkyQM2fnFH0rPbNfBox9EY aQFBcJ7/Z1rpS+Tp9IzsLp1NTKC7V6xlb6JuXt5StMIVcktHU0ofyKCo52k+EpjgAdfz 3MYVk/yMAEpiG+3oS5KAWlXwkmLnDuTCkfcMQYEG34d28O8CEk5s4I4kFGyp21b31IFz mMz9EbGHu5HaDVBgZRjQlI8IfM8iQ9DkyRzVa1x/qoKsfZdVv59XTqOt+cSuwLz8Wzi8 5Z/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:reply-to:message-id :subject:cc:to:from:date; bh=tDap7dYZeGCbFNLO0Wl2DAIiRuElGE2eTkbcS04V0KM=; b=XTq385Qh4cLJj37bAxQc1Neb/WITpgpvkDrk71QDZ/V9vK7WejQFtJv/JPDKIx7imW z1LoUE4TbfD60kHYhQDLZxl9ZNSXFdOAGMDD0ZeDkpsO07vnzYJvr4mda7ktpFqlKByy 0iqwrZAaX97nmGzdZZEr4G9+oAE0d3f0aRRlUO3LJ7apSJJACd8ILdcpTH1GOiBywvUh deQ2TOEgHpaj3SWttAkdDvednPjpo5l03/ca+0GkcUEj+LfjyRf80pHZWq4tXG8qXiHq RLOFZDBlTa8rXqqeQG+WTJC3mFIdItNoEaV3fT7rDmpF+sYGvT0VPGGVy2nJgECocLKk 1RSQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y7si6435623pgj.486.2019.09.07.02.23.46; Sat, 07 Sep 2019 02:24:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391567AbfIFQji (ORCPT + 99 others); Fri, 6 Sep 2019 12:39:38 -0400 Received: from mx1.redhat.com ([209.132.183.28]:42354 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387986AbfIFQjh (ORCPT ); Fri, 6 Sep 2019 12:39:37 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 77CE03086272; Fri, 6 Sep 2019 16:39:37 +0000 (UTC) Received: from tucnak.zalov.cz (ovpn-116-139.ams2.redhat.com [10.36.116.139]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C95995D9D3; Fri, 6 Sep 2019 16:39:36 +0000 (UTC) Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.15.2/8.15.2) with ESMTP id x86GdN6r015074; Fri, 6 Sep 2019 18:39:29 +0200 Received: (from jakub@localhost) by tucnak.zalov.cz (8.15.2/8.15.2/Submit) id x86GdI8l015073; Fri, 6 Sep 2019 18:39:18 +0200 Date: Fri, 6 Sep 2019 18:39:18 +0200 From: Jakub Jelinek To: Segher Boessenkool Cc: Miguel Ojeda , Rasmus Villemoes , Nick Desaulniers , "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , LKML , "gcc-patches@gcc.gnu.org" Subject: Re: [PATCH v2 4/6] compiler-gcc.h: add asm_inline definition Message-ID: <20190906163918.GJ2120@tucnak> Reply-To: Jakub Jelinek References: <20190829083233.24162-1-linux@rasmusvillemoes.dk> <20190830231527.22304-1-linux@rasmusvillemoes.dk> <20190830231527.22304-5-linux@rasmusvillemoes.dk> <20190905134535.GP9749@gate.crashing.org> <20190906122349.GZ9749@gate.crashing.org> <20190906163028.GC9749@gate.crashing.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190906163028.GC9749@gate.crashing.org> User-Agent: Mutt/1.11.3 (2019-02-01) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.49]); Fri, 06 Sep 2019 16:39:37 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 06, 2019 at 11:30:28AM -0500, Segher Boessenkool wrote: > On Fri, Sep 06, 2019 at 05:13:54PM +0200, Miguel Ojeda wrote: > > On Fri, Sep 6, 2019 at 2:23 PM Segher Boessenkool > > wrote: > > > I can't find anything with "feature" and "macros" in the C++ standard, > > > it's "predefined macros" there I guess? In C, it is also "predefined > > > macros" in general, and there is "conditional feature macros". > > > > They are introduced in C++20, > > (Which isn't the C++ standard yet, okay). Well, they have been required by SD-6 before being added to C++20, so we have tons of the predefined macros for C++ already starting with gcc 4.9 or so, but it is something required by the standard so we have to do that. Most of them depend also on compiler options, so can't be easily replaced with a simple __GNUC__ version check. What I'd like to add is that each predefined macro isn't without cost, while adding one predefined macro might not be measurable (though, for some predefined macros (the floating point values) it was very measurable and we had to resort to lazy evaluation of the macros), adding hundreds of predefined macros is measurable, affects the speed of empty compiler run, adds size of -g3 produced debug info, increases size of -E -dD output etc. Jakub