Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3356745imu; Mon, 10 Dec 2018 00:18:29 -0800 (PST) X-Google-Smtp-Source: AFSGD/WY+Nhbjrwky7y3eyw2DBZyekHyyRfFgjw0gAdPO/2JaK6/WshSEE0cpi1eFAHCrfzXSpzS X-Received: by 2002:a62:6a88:: with SMTP id f130mr11573230pfc.201.1544429909330; Mon, 10 Dec 2018 00:18:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544429909; cv=none; d=google.com; s=arc-20160816; b=OOLcL8m9x81TII8QxUfhFqo9nDJktCLu9sLs65vHMQHUvxQEKVryS/Wh+Zo2+t/cXB 11XrpdCGaIWTWjp1/n4l/Gu0rvTD4HFniSyVgLkT0v7aZhX/OxsWHju4O/QDQ1r0JmTN H0orwBFmJ4SftyL3oja15ucJZiu67zOHrM9/0ie5BNk5P6jeQtrywvuh7EiO6J/UeTow DI1tAgKrh7gz+dJIfH/1OElke3L35xVhZrWYLyW1j26PM4EaUT87voVE7vIg5nHwL52+ 7oRnT8r4bsNFv0FozT5XD5FMkY1ugcRX4z1EvbnO1Gnk44VrZ1HOiQ3bG4UzR53xGFPf yEww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature:dkim-filter; bh=yrnmbVARLvLoB7gQY4S8uqBOm9/1ztUzDv1T+RRbN/w=; b=Ox+FB4ZmeTBreBHZaC6zBmCpnAv+MOmg/CZ0q0RrlQzk0XRTDt3QxJ6gWIyIJPDWNc tLuWdv8BLUJ8dX6dtIvJsMKj8JSVR/w0yJq4odqEdjtT1p7GtR0HggmMWScFO9QCCS9U 5bxzhxqr9vU1Hl/pERGmBYh6MeVJ0nAq2PjhU0Jaw7zp6Eju82c5GKCPvktW2bdaEc7W rGPJNyrZvAqoTvtNzCzhe5VgugFvYRGj3pRGuGwzSDkeb8LGO4x5hBxa96CVcEJA2loG 7784XhoHaFSGdfLzINSnl+1UocHIyg8hjc6P/kXBrpwQiezcH8EbBeZIr4R19vrDxCFQ e/zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b="v4aX5Q/T"; 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 r77si9828876pfa.186.2018.12.10.00.18.12; Mon, 10 Dec 2018 00:18:29 -0800 (PST) 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; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b="v4aX5Q/T"; 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 S1726339AbeLJIR2 (ORCPT + 99 others); Mon, 10 Dec 2018 03:17:28 -0500 Received: from conssluserg-05.nifty.com ([210.131.2.90]:64549 "EHLO conssluserg-05.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726029AbeLJIR1 (ORCPT ); Mon, 10 Dec 2018 03:17:27 -0500 Received: from mail-vs1-f50.google.com (mail-vs1-f50.google.com [209.85.217.50]) (authenticated) by conssluserg-05.nifty.com with ESMTP id wBA8H5EE019171; Mon, 10 Dec 2018 17:17:05 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-05.nifty.com wBA8H5EE019171 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1544429826; bh=yrnmbVARLvLoB7gQY4S8uqBOm9/1ztUzDv1T+RRbN/w=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=v4aX5Q/TGmjsSUTi/tPWVMmwr9BvMgOXY79XWlkbix8NI/XIAdeAZbds/Ycc2VRWV CH7zppg7Q3wQF86G8Hlk89kaH0xEyAf4JUgG6g5FdvEP/9z3BV5EJro3XQ0NCLchSM JCKslyX9Z3UFaHlZQ+JZQRBl4CRGdPV+KHE1diWpnGY6oyYquTogpieIwCIeWYzuNB ++XywbkSppPiCzSAma+wa6SSKmPDZjx0+gTgYT3SiZwafK5Kkkzlcc6LvPcm1uQZ9k rWSgR08lbCZWEc/gqjrEeGV//yWveeKyE2tx41+wFGfjLVyA9B1idtHY6onx/3grFv VmiKzfwfmDO6w== X-Nifty-SrcIP: [209.85.217.50] Received: by mail-vs1-f50.google.com with SMTP id g68so6081507vsd.11; Mon, 10 Dec 2018 00:17:05 -0800 (PST) X-Gm-Message-State: AA+aEWbDL2fUl69P1X52Wa3U7cz3ouM8Xt7nET25zcCfHOeXB7uPRPJt 4qwSNdHd3/a9R3XB1Ml4eocz99UZITM9C6uKI8g= X-Received: by 2002:a67:485:: with SMTP id 127mr5057572vse.54.1544429824508; Mon, 10 Dec 2018 00:17:04 -0800 (PST) MIME-Version: 1.0 References: <20181003213100.189959-1-namit@vmware.com> <20181007091805.GA30687@zn.tnic> <20181007132228.GJ29268@gate.crashing.org> <20181008073128.GL29268@gate.crashing.org> <20181009145330.GT29268@gate.crashing.org> <20181129122500.GX23873@gate.crashing.org> <20181130131633.GU23873@gate.crashing.org> In-Reply-To: <20181130131633.GU23873@gate.crashing.org> From: Masahiro Yamada Date: Mon, 10 Dec 2018 17:16:28 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: PROPOSAL: Extend inline asm syntax with size spec To: Segher Boessenkool Cc: Borislav Petkov , Nadav Amit , Ingo Molnar , "H. Peter Anvin" , rguenther@suse.de, matz@suse.de, gcc@gcc.gnu.org, Linux Kernel Mailing List , X86 ML , Sam Ravnborg , Alok Kataria , Christopher Li , Greg Kroah-Hartman , Jan Beulich , Josh Poimboeuf , Juergen Gross , Kate Stewart , Kees Cook , linux-sparse@vger.kernel.org, "Peter Zijlstra (Intel)" , Philippe Ombredanne , Thomas Gleixner , virtualization@lists.linux-foundation.org, Linus Torvalds , Chris Zankel , Max Filippov , linux-xtensa@linux-xtensa.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Segher, On Sun, Dec 2, 2018 at 3:48 PM Segher Boessenkool wrote: > > On Fri, Nov 30, 2018 at 10:06:02AM +0100, Boris Petkov wrote: > > On November 29, 2018 1:25:02 PM GMT+01:00, Segher Boessenkool wrote: > > >This will only be fixed from GCC 9 on, if the compiler adopts it. The > > >kernel wants to support ancient GCC, so it will need to have a > > >workaround > > >for older GCC versions anyway. > > > > What about backporting it, like Richard says? > > Let me first get it into GCC trunk :-) > > It should backport fine, sure; and I'll work on that. > Now, I can see it in the GCC trunk. Hooray!!! commit 6de46ad5326fc5e6b730a2feb8c62d09c1561f92 Author: segher Date: Thu Dec 6 17:56:58 2018 +0000 asm inline The Linux kernel people want a feature that makes GCC pretend some inline assembler code is tiny (while it would think it is huge), so that such code will be inlined essentially always instead of essentially never. This patch lets you say "asm inline" instead of just "asm", with the result that that inline assembler is always counted as minimum cost for inlining. It implements this for C and C++, making "inline" another asm-qualifier (supplementing "volatile" and "goto"). -- Best Regards Masahiro Yamada