Received: by 10.223.185.116 with SMTP id b49csp982335wrg; Wed, 14 Feb 2018 09:46:37 -0800 (PST) X-Google-Smtp-Source: AH8x224DObFVyhqBKGHk8K0lN6/+VN9UDnVdlYf7sXh/5FuzjWXDId0NWJ7zTCXOy7Snu/Hibx5/ X-Received: by 10.98.77.195 with SMTP id a186mr487pfb.69.1518630397580; Wed, 14 Feb 2018 09:46:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518630397; cv=none; d=google.com; s=arc-20160816; b=GoPLTQy57aoWyb25sll7MY8EIjkxCLX87zHDilbZRhKRQ6YMGvAiI+Tb9AUxbNA/6I GkAn3SYK5Jqtl1UNvASoSwGa2bBWUI4SzXESOuSzogbtqcZZd0tT3lHBxcIQkGPfjxRV LnF8cCyGqAMJRivg5k0uEmTAeXxLyrQ5M5diIb7DfTBzAJl61OO9qbA4lGtyf1LbLGus WFmk1bb0/bo9J6mc6MkeVvqahoEmFB253j07MJK1JLg5QWIfS4SzSNedGZq76BKQ4tjN tdAkKYaRuGgAoP6muYLcuU4hOzePDMV9a8NUFyCBh92L0ul9PNmc25PNfy2cJu4s9g9z CtUA== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=kvzReK7B7TcwTt5odqH4oSZq0OkUcX2y3L6ZFXYih5Q=; b=cTi4byBiF/zgE/yotNNCrCJ3ezZ26S4smTeNYMDpoP/Hb1SuEJ1g3dqpbBY9uR2WsY ZW5uUy/YTRZLDWQ8uareDFDNFIlqGgLVfJVJ2C/hSJKD7JFN4INqojs5dNmO30/fRrUo RWJD63W68ZE44LX6bKwBJ0LHybqDtnmzOREh6fu507wRDmzGMYwcIptSMkODwSB0H1jm W703VcRlm3hlqM4IwNxCU7VrJLqct3DyFYUrR1ELagTKciwFspgnGexYB0cUBL+4DAop WrGhddv+ity0R06qNoWZDjkBveRymb6yFnSUg25WO3jL4Rzy4uPQvv8FklcKjHmCwlUg KZQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=UoIeB9/U; 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 j7si8184947pgp.293.2018.02.14.09.46.21; Wed, 14 Feb 2018 09:46:37 -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=fail header.i=@gmail.com header.s=20161025 header.b=UoIeB9/U; 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 S1161489AbeBNRna (ORCPT + 99 others); Wed, 14 Feb 2018 12:43:30 -0500 Received: from mail-it0-f65.google.com ([209.85.214.65]:38180 "EHLO mail-it0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161401AbeBNRn1 (ORCPT ); Wed, 14 Feb 2018 12:43:27 -0500 Received: by mail-it0-f65.google.com with SMTP id k6so15916791ita.3 for ; Wed, 14 Feb 2018 09:43:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=kvzReK7B7TcwTt5odqH4oSZq0OkUcX2y3L6ZFXYih5Q=; b=UoIeB9/U7cEg66bf9Zr5gdlKhtdwnoSqyvN0Ts0tSOTnfWgTZMfIHEnp3zp9TVvAeQ uUZtT2UbSbVmuuC4pUwSbqG1Q6mxfkm6pjCs1e0t2/tnR3rego1ACfNbG74u4yplFsrr xyNoaQ7x2/p37GJEVaDsm+gxZxV2tOEowcVaV4zu3CaEof5LbWZQPatH/+l1nzuW28DV D6+MQ/jbBIakYVPfYq3/wn82gDssO0XM2UCjUy+B7L6Cu1xFzADBopZe5FvqCJeAAX2x Tvef2k4CJb3CU5QC+K8xhIimputK891euLJJMOxyCCPkh2xWYmLQ1iuDU63cFHNNtKax 8/wQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=kvzReK7B7TcwTt5odqH4oSZq0OkUcX2y3L6ZFXYih5Q=; b=T4HwQyOGJp8d0IWGKUArBFYYLPJXhZ8XlXb5vLUJOhgZqy09XNyYywswrdTw9yTwyN J8S9auVmpielnz8yf8ty7HxAln0ow6au/oVwk0yPmhGE8QOMA2IwbysiGBXaK3izGR1Q 1jfzi0kHiEh3haETUi7G/8Bp6lASUIkeg++jbQ8udMLH2oxS1MIHAep6S6GDGXfkwkV7 6Hp3F973NPb167GV97RxdIX6sgcwXAPgy9kzKrFD1oW9pYv2WwlgvtWHBag55lM/NLdi bgCPQywh9+s3CiOVfCbRwriz2HCLfntrztbsJK05FzpE8l/vC1WinaW5vo9kOWMf8BlJ 1dhQ== X-Gm-Message-State: APf1xPANaYnkuBMB9wWSUc/NIooVd0pz84XWSRdqWQ52uXYPwdHTjRfF s9UbEfNbojGcNLfLQ3G2QvS8opssPaUw2eO0+Q0= X-Received: by 10.36.179.14 with SMTP id e14mr7019353itf.139.1518630206225; Wed, 14 Feb 2018 09:43:26 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.135.221 with HTTP; Wed, 14 Feb 2018 09:43:25 -0800 (PST) In-Reply-To: References: From: Linus Torvalds Date: Wed, 14 Feb 2018 09:43:25 -0800 X-Google-Sender-Auth: aktuoriW_cajgq6oRfyS8PcOFuQ Message-ID: Subject: Re: clang asm-goto support (Was Re: [PATCH v2] x86/retpoline: Add clang support) To: James Y Knight Cc: "Yatsina, Marina" , Kees Cook , David Woodhouse , Chandler Carruth , "Kreitzer, David L" , "Grischenko, Andrei L" , "rnk@google.com" , LLVM Developers , "ehsan@mozilla.com" , "Tayree, Coby" , Matthias Braun , Dean Michael Berris , Guenter Roeck , X86 ML , LKML , Alan Cox , Rik van Riel , Andi Kleen , Josh Poimboeuf , Tom Lendacky , Peter Zijlstra , Jiri Kosina , Andy Lutomirski , "Hansen, Dave" , Tim Chen , Greg Kroah-Hartman , Paul Turner , Stephen Hines , Nick Desaulniers 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 On Wed, Feb 14, 2018 at 7:31 AM, James Y Knight wrote: > > IMO, inline asm is, generally, a valuable feature to provide in the > compiler as an escape hatch, and asm goto is a relatively sane > extension of it. Side note: one thing that limits "asm goto" in gcc is the fact that you can't have outputs. If clang people are looking at "asm goto", the _syntax_ is actually very straightforward, and there's really absolutely no point in trying to make up some other interface. But extending on what gcc does, and allowing outputs (possibly valid in the fall-through case only, not in the cases where it jumps away to a label) would be a big improvement on what gcc does. At that point, we'd start to pester the gcc people to do the clang thing, rather than the other way around. Because that's only fair ;) Linus