[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210826141254.GB1583@gate.crashing.org>
Date: Thu, 26 Aug 2021 09:12:54 -0500
From: Segher Boessenkool <segher@...nel.crashing.org>
To: Michael Ellerman <mpe@...erman.id.au>
Cc: Nathan Chancellor <nathan@...nel.org>,
Christophe Leroy <christophe.leroy@...roup.eu>,
llvm@...ts.linux.dev, linux-kernel@...r.kernel.org,
clang-built-linux@...glegroups.com,
Paul Mackerras <paulus@...ba.org>,
linuxppc-dev@...ts.ozlabs.org
Subject: Re: [PATCH v2 2/2] powerpc/bug: Provide better flexibility to WARN_ON/__WARN_FLAGS() with asm goto
On Thu, Aug 26, 2021 at 01:21:39PM +1000, Michael Ellerman wrote:
> So there seems to be some misunderstanding with clang, it doesn't like
> us passing an expression to the inline asm.
>
> AFAIK it is legal to pass expressions as inputs to inline asm, ie. it
> doesn't have to just be a variable name.
It certainly is. That is the whole point of inline asm! This way, all
of the C code "around" the asm can be optimised.
> This patch seems to fix it. Not sure if that's just papering over it though.
It is, and it makes less optimised code (also on GCC), as Christophe
points out.
Segher
Powered by blists - more mailing lists