Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5277039pxj; Wed, 9 Jun 2021 13:32:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyu96imt0tw8gKKlKNkbVk+qfW/WohSe+LM3dChGboFqWttA+1EdCyIEk/VaBDeWuu6sHsV X-Received: by 2002:a17:906:3016:: with SMTP id 22mr1477876ejz.28.1623270777055; Wed, 09 Jun 2021 13:32:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623270777; cv=none; d=google.com; s=arc-20160816; b=yA+diz+nE2x0E3hf9J0HQN2NIPpL8LMvWxSnMbTuYhtpIi8wdkus3u6XELY4qpxjZw yWzzW7IVgitWfD0dwSdoj6s8ZfTRpTeS/h0okj+zPT+VnR+jx5a6vGMuq7ZU0yNSQece ElJKRdqml15EYzkiY+81xO7AYoPiR8r+v97SW5DvpJnh1ExNKoM7u3jkBsZ3h5URUuBa NVlSOYx9b7CpySTQEildQFZgCkoS7IjsjMbGiglJ4v0FKSsv5LdqRm0n2jlLWnBUWDF1 8wLKBcr0gubx3oPKwzo1MW1cqgKIHH651xqezBZP5aj1WQCU2O8CMxQuk8+ZNbfs3vmg 9PVA== 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=tsA8v1AFZaiStTHPCaOYypARzRjEd6aCQvkoeToGPpc=; b=fGLzDj9F+coWYlaiwgJ3+2/jMtzNcQraZZtzVSxfqehZxwKiTF6Ujj0ACpCEjuolXf kYX/Nma14PCoQTPvrsSoZLPi/h7HeH82G58lYrNivRQQmBAR58qwOU78CutBCMv/iWfq +j2o2o8Vnr22fws6EP5G0PPlgstHrcMbnSG3X45q4UNfnHlKNsU1UN+AOf0BYvba2ZN7 k+VK9cTsSgSVy0yGNnBCSBYUFOC0UcLS8XgDgvv0jELH6ZWPZ03JjyOgXYes7mTsdXLT XZJ8YksAM+ZjWRVQRyLREjHXkpoO88yuTNGwYX6aWSqI5CzbqzYDq1TcOKS0wR+fJzGc +KxQ== 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 z26si743091ejc.46.2021.06.09.13.32.32; Wed, 09 Jun 2021 13:32:57 -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 S229638AbhFIUcD (ORCPT + 99 others); Wed, 9 Jun 2021 16:32:03 -0400 Received: from gate.crashing.org ([63.228.1.57]:51896 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229507AbhFIUcC (ORCPT ); Wed, 9 Jun 2021 16:32:02 -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 159KOVoh018172; Wed, 9 Jun 2021 15:24:31 -0500 Received: (from segher@localhost) by gate.crashing.org (8.14.1/8.14.1/Submit) id 159KOR2Q018166; Wed, 9 Jun 2021 15:24:27 -0500 X-Authentication-Warning: gate.crashing.org: segher set sender to segher@kernel.crashing.org using -f Date: Wed, 9 Jun 2021 15:24:27 -0500 From: Segher Boessenkool To: Nick Desaulniers Cc: Marco Elver , Peter Zijlstra , "Paul E. McKenney" , Alexander Monakov , Linus Torvalds , Jakub Jelinek , Alan Stern , 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: <20210609202427.GK18427@gate.crashing.org> References: <20210607152806.GS4397@paulmck-ThinkPad-P17-Gen-1> <20210608152851.GX18427@gate.crashing.org> <20210609153133.GF18427@gate.crashing.org> <20210609171419.GI18427@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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 09, 2021 at 10:31:13AM -0700, Nick Desaulniers wrote: > On Wed, Jun 9, 2021 at 10:20 AM Segher Boessenkool > wrote: > > > > On Wed, Jun 09, 2021 at 06:13:00PM +0200, Marco Elver wrote: > > > On Wed, 9 Jun 2021 at 17:33, Segher Boessenkool > > > wrote: > > > [...] > > > > > An alternative design would be to use a statement attribute to only > > > > > enforce (C) ("__attribute__((mustcontrol))" ?). > > > > > > > > Statement attributes only exist for empty statements. It is unclear how > > > > (and if!) we could support it for general statements. > > > > > > Statement attributes can apply to anything -- Clang has had them apply > > > to non-empty statements for a while. > > > > First off, it is not GCC's problem if LLVM decides to use a GCC > > extension in some non-compatible way. > > Reminds me of > https://lore.kernel.org/lkml/CAHk-=whu19Du_rZ-zBtGsXAB-Qo7NtoJjQjd-Sa9OB5u1Cq_Zw@mail.gmail.com/ And my reply to that https://lore.kernel.org/lkml/20200910154423.GK28786@gate.crashing.org/ Segher