From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DE8C0C48BCF for ; Wed, 9 Jun 2021 20:30:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B382161354 for ; Wed, 9 Jun 2021 20:30:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229542AbhFIUcD (ORCPT ); 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-toolchains@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