Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp865694ybe; Fri, 6 Sep 2019 08:25:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqzzYS+GWBYmzPFnyYcGjeLYlBGUJugzRFp++mA21xb8zxZAZTn9lXgCSBIsBgzwY+Faf6/g X-Received: by 2002:a65:5584:: with SMTP id j4mr8388328pgs.258.1567783559101; Fri, 06 Sep 2019 08:25:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567783559; cv=none; d=google.com; s=arc-20160816; b=W7XkCYNQFUVHRbKbsTOICu7Thh0kzq3vaM2bMXLmyqMPiYXMCeNamRb9zztz5HW21f wmXp1WBuQ8E+Ldecw+HtZAffAs+O+cWwf1rYcR1Bbzmf7qS4fd+auAHlUm8LsZs34NTz G9CJy4xg+PXe4G4TiUrYgGPAeoD0iRgnW/FOZCfEjatHUUJMxTJECTy2cWkvzdeDq9Gz yYtsjRjBEzRB3DTo/hlDSPv5kjYJpvqZO+gMdtkcqgbZI3Mn1e4nF2Jrfwf5kCDMfnPy J+sF8udAch/VZkeK24fAj9Y52Ni3eD4RzjMfyw4nFcLB9bJpZUDlTQsGneqZRXM4hHML sJZQ== 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:message-id:subject:cc :to:from:date; bh=ejmwfNODikXu1WnPyC1bqzA+FwfxxOEJT2gFsuE96WI=; b=tV6XDvQPEvtRMzjzNIMhJMQxmzg4xR1zaBo1MbtM7soGWKO5NCq+0rzeDEhvPj2nSV 38ZI2a+0wFQWklkPTUvJVsrNksm0XIKtnTSE3miVl0GFSKLdoYJGPZqStHMfEec6AH1V L3nhGtsOFdUTRlpuJCjqqpVto3vjnw9JSla9Vk4c63Dk68CXdrBQINZC07p12cPd8Liv HghH0lj8oJOS7kG9es0o0MJ528hnARZSrbHKPjAE3TFT/jfPNDAZhFPMPyUqNBiA0AL4 WrDhrUXN2Kj0qK9s2rYhhnp00Z93hA4aalp6sYGM3eEM87Qiq4xCzOfkXnP5jS5T8NPP D97g== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j3si5840481pfa.49.2019.09.06.08.25.43; Fri, 06 Sep 2019 08:25:59 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2403905AbfIFMX7 (ORCPT + 99 others); Fri, 6 Sep 2019 08:23:59 -0400 Received: from gate.crashing.org ([63.228.1.57]:51751 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731928AbfIFMX6 (ORCPT ); Fri, 6 Sep 2019 08:23:58 -0400 Received: from gate.crashing.org (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.14.1) with ESMTP id x86CNoUZ027069; Fri, 6 Sep 2019 07:23:50 -0500 Received: (from segher@localhost) by gate.crashing.org (8.14.1/8.14.1/Submit) id x86CNnID027066; Fri, 6 Sep 2019 07:23:49 -0500 X-Authentication-Warning: gate.crashing.org: segher set sender to segher@kernel.crashing.org using -f Date: Fri, 6 Sep 2019 07:23:49 -0500 From: Segher Boessenkool To: Miguel Ojeda Cc: 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: <20190906122349.GZ9749@gate.crashing.org> References: <20190829083233.24162-1-linux@rasmusvillemoes.dk> <20190830231527.22304-1-linux@rasmusvillemoes.dk> <20190830231527.22304-5-linux@rasmusvillemoes.dk> <20190905134535.GP9749@gate.crashing.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 05, 2019 at 05:52:44PM +0200, Miguel Ojeda wrote: > On Thu, Sep 5, 2019 at 3:45 PM Segher Boessenkool > wrote: > > > > [ That's not what a feature test macro is; a feature test macro allows the > > user to select some optional behaviour. Things like _GNU_SOURCE. ] > > Yes and no. GNU libc defines feature test macros like you say, but > C++'s feature macros are like Rasmus/Nick are saying. I think libc's 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". > definition is weird, I would call those "feature selection macros" > instead, because the user is selecting between some features (whether > to enable or not, for instance), rather than testing for the features. Sure. But the name is traditional, many decades old, it predates glibc. Using an established name to mean pretty much the opposite of what it normally does is a bit confusing, never mind if that usage makes much sense ;-) Segher