Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2686859pxj; Sun, 6 Jun 2021 10:19:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwvb3aRHfME4urs5VUjAr9P9HZirpNYr37ux1GcVmyNy6AYL6lDBJrAOf2gL2DK56e6Epo/ X-Received: by 2002:aa7:d4c2:: with SMTP id t2mr15617672edr.144.1622999992808; Sun, 06 Jun 2021 10:19:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622999992; cv=none; d=google.com; s=arc-20160816; b=aSWOJ8ylH1/fN75QVkE8lqDYHPh1XAlDhH+/spbzd7sbDuT9vb2XKouMOsz8nZHIHL NUlRXTqG+55kkxsM/ryuN/vFpQ+wxF2MEYLIvxOrCfFroa1oeDxecr0efi9NODlgoSTc w/14P/YsZfzqVWXxOYBc60k/ZPeIfAwbvR8GDt7pFfZv8XM7qUILOCGl+rk241D+kgH+ H/xJI2i89TGic17clu2kfBI6rSrVua8b2VuQu4TBhoVPDiU/5fsnbClXutpHxJ/6aVDs iiu2RxfE/J0tCo4/4Vg4tmM+SUer4lkspznRXdVa9jeOpEcpRGgn6XlZsD4yiqyibGDj ZqWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=dHfTX9P1PH7g29j2NTz+WgkV3aZFtBEGYSq3Icx+GMA=; b=MVDJy5QRp37VmMJJk2D8raUDMUfZZusUJ3nf2VE4GgzWk85mQI1XIDgLv/WZGiD9BM LgmNTrY5Z6Pijzr4UJaQg8iNre8ZZoQe6e7QVEWv/9DWYGXxyouPxzF5r3fwC8pOtNo/ Ga4JJdjgWaQ1+5XAcVfdx0lyg0hL1gUcz6uLGSeSygvNaPbumGe7yLBvilh8kjsWVmyf eSCkHEHAAA5s6/dAXOIiNQdnhBCgCQeg+U+QsN45TkiW6JzQ1G4WnMcAct1fVdPD5BWe LauAFjdqz2QjW4xhAV4OIRqQa6qgW9X2uNMSio+nrvUBjtvH/mSwPXw+oUfSQqxclGAc e5Zw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s7si10917680edx.5.2021.06.06.10.19.29; Sun, 06 Jun 2021 10:19:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229839AbhFFRUN (ORCPT + 99 others); Sun, 6 Jun 2021 13:20:13 -0400 Received: from gate.crashing.org ([63.228.1.57]:44823 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229474AbhFFRUM (ORCPT ); Sun, 6 Jun 2021 13:20:12 -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 156HE02l006674; Sun, 6 Jun 2021 12:14:00 -0500 Received: (from segher@localhost) by gate.crashing.org (8.14.1/8.14.1/Submit) id 156HDuDv006673; Sun, 6 Jun 2021 12:13:56 -0500 X-Authentication-Warning: gate.crashing.org: segher set sender to segher@kernel.crashing.org using -f Date: Sun, 6 Jun 2021 12:13:56 -0500 From: Segher Boessenkool To: Alan Stern Cc: Linus Torvalds , "Paul E. McKenney" , Peter Zijlstra , Will Deacon , Andrea Parri , Boqun Feng , Nick Piggin , David Howells , Jade Alglave , Luc Maranget , Akira Yokosawa , Linux Kernel Mailing List , linux-toolchains@vger.kernel.org, linux-arch Subject: Re: [RFC] LKMM: Add volatile_if() Message-ID: <20210606171356.GV18427@gate.crashing.org> References: <20210604205600.GB4397@paulmck-ThinkPad-P17-Gen-1> <20210604214010.GD4397@paulmck-ThinkPad-P17-Gen-1> <20210605145739.GB1712909@rowland.harvard.edu> <20210606001418.GH4397@paulmck-ThinkPad-P17-Gen-1> <20210606012903.GA1723421@rowland.harvard.edu> <20210606125955.GT18427@gate.crashing.org> <20210606134749.GB1736178@rowland.harvard.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210606134749.GB1736178@rowland.harvard.edu> User-Agent: Mutt/1.4.2.3i Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jun 06, 2021 at 09:47:49AM -0400, Alan Stern wrote: > > GCC does not pretend it can understand the asm. But it can see when > > two asm statements are identical. > > How similar do two asm strings have to be before they are considered > identical? For instance, do changes to the amount of leading or > trailing whitespace matter? They have to be identical to be considered identical. > Or what about including an empty assembly statement in one but not the > other? GCC does not parse the assembler template. Segher