Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp524449pxb; Sat, 10 Apr 2021 10:07:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyXlRe4x2bPwY/deRdNfOB3qdX+Q2VbcDZsga0PWkMsjdRVKRSKnldaE7+EL0+CBpzCO3b+ X-Received: by 2002:a63:7c5a:: with SMTP id l26mr18940429pgn.224.1618074425222; Sat, 10 Apr 2021 10:07:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618074425; cv=none; d=google.com; s=arc-20160816; b=Jldfq/A10WFRgkH72n93UcqyfuBVMIozAMkDBswxq55KrHyCvlfChZjN8AH03RgHrW MmEAjLpt+41y7o1y0d30XPmoEgFL5KAn6cG6+i9dLk/uxgLcKEzKY5MRqco0aT/rTgDa fkWQ6VYKfQwnJFLbNlrBaeYS6yN1S9YE0ellAQc9o9q6gZ6hxbyPANPGL1YggKZwJHbm nwQNsoC+rcrnEN4r+CAMbuPkKpBXvve/7I5KAfRIA5+/HnSZKuPwQWqY1GQnvQ3+WQXN IYHomjfAtwYoWEuJQhIw1wBDLbxJvVUxxYh1swEGRs2+FfUxsqBuLWf+30kkLHipXhXm lRoA== 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=W1QIg0c5bfnHkHdsje3QOz08WL2x5s5aS/fnnprsC9A=; b=cV/dcwThCWErjYanK+6Jaw2gIsxP8itoyDVgmcYkK5DaEE0LMZqpy7CGyAU4YPZEFC h2q1Vb4F930Drqpmz8mSGl0q8r/xIwL7zKlTF+QDESWPHyon71HQ6tN+oICqXkYGfZ8Y 3ya9nYvN2gY7Z3NmNvbEQB+BlAsdYtO1EWpLXbqSZHKv997JBPRrZhvanOGH3hhg0mBP 6Nw2KGY6B/5tOKG3oRHvSmhVgBEBd3Yf/3GFYjU1KhS1Od/D3HQ69BGx5NFSDDb8stCz rmRIQh92BeIod9FC7vzkvq7LpbRNwLdbb7TfL3MDqtbhejwK8UK/LhPQhbY4JyGWstgY w7pw== 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 o22si6196276pll.352.2021.04.10.10.06.53; Sat, 10 Apr 2021 10:07:05 -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 S234844AbhDJRGb (ORCPT + 99 others); Sat, 10 Apr 2021 13:06:31 -0400 Received: from gate.crashing.org ([63.228.1.57]:58088 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234680AbhDJRGa (ORCPT ); Sat, 10 Apr 2021 13:06:30 -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 13AH2bxh009969; Sat, 10 Apr 2021 12:02:37 -0500 Received: (from segher@localhost) by gate.crashing.org (8.14.1/8.14.1/Submit) id 13AH2ara009963; Sat, 10 Apr 2021 12:02:36 -0500 X-Authentication-Warning: gate.crashing.org: segher set sender to segher@kernel.crashing.org using -f Date: Sat, 10 Apr 2021 12:02:36 -0500 From: Segher Boessenkool To: Nick Desaulniers Cc: Peter Zijlstra , Florian Weimer , Ard Biesheuvel , linux-toolchains@vger.kernel.org, Linux Kernel Mailing List , Josh Poimboeuf , Jason Baron , "Steven Rostedt (VMware)" , dmalcolm@redhat.com Subject: Re: static_branch/jump_label vs branch merging Message-ID: <20210410170236.GJ26583@gate.crashing.org> References: <877dlbzq09.fsf@oldenburg.str.redhat.com> 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 Fri, Apr 09, 2021 at 12:33:29PM -0700, Nick Desaulniers wrote: > Since asm goto is implicitly volatile qualified, it sounds like > removing the implicit volatile qualifier from asm goto might help? > Then if there were side effects but you forgot to inform the compiler > that there were via an explicit volatile qualifier, and it performed > the suggested merge, oh well. "asm goto" without outputs is always volatile, just like any other asm without outputs (if it wasn't, the compiler would always delete every asm without outputs!) Segher