Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp872760ybe; Thu, 5 Sep 2019 07:12:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqw8i22wbx3L6qbNVdABJVk/MTwxRKk32tL2/bzMirhAhAUYyb16G4SNc+D59jlym3JOTEHT X-Received: by 2002:a62:1b0c:: with SMTP id b12mr4007717pfb.17.1567692735924; Thu, 05 Sep 2019 07:12:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567692735; cv=none; d=google.com; s=arc-20160816; b=EJq9TQVzbYurKXhDKLpayl4YLVuTK0iPBKcRstfWKeM/Rueruh6RNVgQU2cMV2kteT Ra/h9ssB6qkVGu7PI2iAD5WOiA48XgLkbBM0czGAFporUbwZ969BzxtpCZtkZGiHEU5M nw8ysgr3HKhzU4yIVLSj1Er7439qphCu7Wavlej4SwMwGLhh+Qz+rCIO7M5MJUtEeLp/ C7Y1z1R93gb1t8MScBPq1EbDy+ygZN2H2Xc9XyYXHAqhfKaQtDq8S5aXO3tW692+vI5D WHdqj79Kn9qGDONOlw3VvuVvFy+QWuZTXF3GyUZdIY4dpRKs9Xb1UPwRqK32SU1+Y2L3 S8jQ== 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=YUwEngl3EhBWo+t7Xlh+NicDl7hlx+ZvCiq90eta0Hg=; b=zGYvD2ON8iMVxNmLrH8I0Cie1BpzRxlaKauDrx4bQ7bfPkeOhnpVuSjiKUsYjmgOIn xMWPvrdoHoO6XPEVyzHXMqfjd84ZAh+rLLLl9JmDe7XkWFnd6DqRaGuBL6lqS3gtu113 QfTNZqDPR5SspvANHuMk5fYWzXj1GrJF49f0K1S4HNE0W16hGvYzH/2+uUj+Uq/KHbwJ c+iOzzMPSzvgMVFmFqUdl/PQANWqrqDu/B68gEto3zu7PO1nfCyXbxGPx9OFFahOGKCE fdcvO0PMDpXglb9fVT2cPLNucPX2TXUFsyRin8wK/KFt4MPl/H4QNRoGrjHOOrrebaNQ MVFQ== 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 c11si1869252pga.118.2019.09.05.07.11.52; Thu, 05 Sep 2019 07:12:15 -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 S1731351AbfIENpr (ORCPT + 99 others); Thu, 5 Sep 2019 09:45:47 -0400 Received: from gate.crashing.org ([63.228.1.57]:44357 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727900AbfIENpq (ORCPT ); Thu, 5 Sep 2019 09:45:46 -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 x85Djarb028469; Thu, 5 Sep 2019 08:45:36 -0500 Received: (from segher@localhost) by gate.crashing.org (8.14.1/8.14.1/Submit) id x85DjZfR028468; Thu, 5 Sep 2019 08:45:35 -0500 X-Authentication-Warning: gate.crashing.org: segher set sender to segher@kernel.crashing.org using -f Date: Thu, 5 Sep 2019 08:45:35 -0500 From: Segher Boessenkool To: Rasmus Villemoes Cc: Nick Desaulniers , "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , LKML , Miguel Ojeda , "gcc-patches@gcc.gnu.org" Subject: Re: [PATCH v2 4/6] compiler-gcc.h: add asm_inline definition Message-ID: <20190905134535.GP9749@gate.crashing.org> References: <20190829083233.24162-1-linux@rasmusvillemoes.dk> <20190830231527.22304-1-linux@rasmusvillemoes.dk> <20190830231527.22304-5-linux@rasmusvillemoes.dk> 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 Hi Rasmus, On Thu, Sep 05, 2019 at 01:07:11PM +0200, Rasmus Villemoes wrote: > On 05/09/2019 02.18, Nick Desaulniers wrote: > > Is it too late to ask for a feature test macro? Maybe one already > > exists? > > No, not as far as I know. [ 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. ] > Perhaps something like below, though that > won't affect the already released gcc 9.1 and 9.2, of course. That is one reason to not want such a predefined macro. Another reason is that you usually need to compile some test programs *anyway*, to see if some bug is present for example, or to see if the exact implementation of the feature is beneficial (or harmful) to your program in some way. > gcc maintainers, WDYT? Can we add a feature test macro for asm inline()? The only comparable existing predefined macro is __PRAGMA_REDEFINE_EXTNAME it seems (no, I have no idea either). Everything else is required by some standard (a "standard standard" or a "vendor standard", I'm lumping everything together here), or shows whether some target has some feature, or how many bits there are in certain types, that kind of thing. Why would GCC want to have macros for all features it has? That would be quite a few new ones every release. And what about bug fixes, are bug fixes features as well? I think you need to solve your configuration problems in your configuration system. Segher