Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3532989imu; Fri, 30 Nov 2018 01:47:05 -0800 (PST) X-Google-Smtp-Source: AFSGD/U5LEZft5VTdcQMb7VP8uHy/Chyx9r/YTtFi8Nbh6DV6LJWuIO0Eu0VILD7SqXgdRr+rIDS X-Received: by 2002:a17:902:583:: with SMTP id f3mr5170558plf.202.1543571225144; Fri, 30 Nov 2018 01:47:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543571225; cv=none; d=google.com; s=arc-20160816; b=pR3bY7A8p+6X8CRutKzfLFsJ72zPxIU89z6PNet+eMBbvDofFqnOIw//w5Kn4+p5H7 UGy5/mjyMW4af0qjeo4pZhCmiYugaiC6G4FkrNHLh0k3Ogupz6FNgb08gdNmobdGz1Oq r3z8bpp8YxtlbGrkEyipYiUF8U1EwOCLuDqKI0x2zUq+eVeiElCZffSC91POIEpEUWbF aeznzxlQgGq6XYo2YF1rbx+pSqO5nCKryxqoSw+9DY0lGWmqRlU4OgzuZh7mBrNi6d2V Xnh/Ku2IsTft9PPihIreQxpqvoygODAccFOWQkHf/L4SGUNHZMT9dzg8VqRFVigWq+Bq pevQ== 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=6Zun3LMZ1tUNE2iKip7RFiypirqpuSYaur8m6NMdEhs=; b=FkPonQXkoKKsWMtN1CvC/4Z6ObAEqMm8UO/wwNh0zvdAz/f2hINzGmpUDp1XztMPRL H6vLIhR0YY6GoCeBlmVF6VkB24/iqBEDUbPYUUkv5BniyxYQ9OpJrAwvt7y/V/Y+RRXi 8nc9ANfo6Hzw8sYCRmZtU1S5mTQ91OeQfk7XFaEI+64Rd4BS4moitb3cuOMXwVzF8MLS Wx4fPOKSsz1Ib7ubjP7/XErf9AHyPWYyMmt6269hTqBOPWjUVaOZ3ruWrMiZ2mwWXftk u8+OrwLYz0IjYXyEjIxC2IJ1HKrOiJa9iig0RNpC/y10VcnZ6OnQN0QFJqJYc13D4A5Z O0PA== 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 j29si4451492pgm.554.2018.11.30.01.46.50; Fri, 30 Nov 2018 01:47:05 -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; 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 S1726802AbeK3UyC (ORCPT + 99 others); Fri, 30 Nov 2018 15:54:02 -0500 Received: from gate.crashing.org ([63.228.1.57]:50784 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726507AbeK3UyC (ORCPT ); Fri, 30 Nov 2018 15:54:02 -0500 Received: from gate.crashing.org (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.14.1) with ESMTP id wAU839LG029143; Fri, 30 Nov 2018 02:03:39 -0600 Received: (from segher@localhost) by gate.crashing.org (8.14.1/8.14.1/Submit) id wATCP2Ns010550; Thu, 29 Nov 2018 06:25:02 -0600 X-Authentication-Warning: gate.crashing.org: segher set sender to segher@kernel.crashing.org using -f Date: Thu, 29 Nov 2018 06:25:02 -0600 From: Segher Boessenkool To: Masahiro Yamada Cc: Nadav Amit , Ingo Molnar , "H. Peter Anvin" , rguenther@suse.de, matz@suse.de, Borislav Petkov , 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 Subject: Re: PROPOSAL: Extend inline asm syntax with size spec Message-ID: <20181129122500.GX23873@gate.crashing.org> 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> 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, Nov 29, 2018 at 08:46:34PM +0900, Masahiro Yamada wrote: > On Wed, Oct 10, 2018 at 1:14 AM Segher Boessenkool > wrote: > > > > On Mon, Oct 08, 2018 at 11:07:46AM +0200, Richard Biener wrote: > > > On Mon, 8 Oct 2018, Segher Boessenkool wrote: > > > > On Sun, Oct 07, 2018 at 03:53:26PM +0000, Michael Matz wrote: > > > > > On Sun, 7 Oct 2018, Segher Boessenkool wrote: > > > > > > On Sun, Oct 07, 2018 at 11:18:06AM +0200, Borislav Petkov wrote: > > > > > > > Now, Richard suggested doing something like: > > > > > > > > > > > > > > 1) inline asm ("...") > > > > > > > > > > > > What would the semantics of this be? > > > > > > > > > > The size of the inline asm wouldn't be counted towards the inliner size > > > > > limits (or be counted as "1"). > > > > > > > > That sounds like a good option. > > > > > > Yes, I also like it for simplicity. It also avoids the requirement > > > of translating the number (in bytes?) given by the user to > > > "number of GIMPLE instructions" as needed by the inliner. > > > > This patch implements this, for C only so far. And the syntax is > > "asm inline", which is more in line with other syntax. > > > > How does this look? > > > Thank you very much for your work. > > > https://gcc.gnu.org/ml/gcc-patches/2018-10/msg01932.html > > How is the progress of this in GCC ML? Latest patch was pinged a few times: https://gcc.gnu.org/ml/gcc-patches/2018-11/msg01569.html . I'll ping it again. Will fix the subject as well if I remember to, sigh. > I am really hoping the issue will be solved by compiler > instead of the in-kernel workaround. 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. Segher