Re: [RFC] LKMM: Add volatile_if()

Linus Torvalds
2021-06-06T18:54:14Z

On Sun, Jun 6, 2021 at 11:48 AM Linus Torvalds
<torvalds@linux-foundation.org> wrote:
> And to work well, it needs "asm goto", which is so recent that a lot
> of compilers don't support it (thank God for clang dragging gcc
> kicking and screaming to implement it at all - I'd asked for it over a
> decade ago).

Oh, actually, I'm wrong on this.

We don't need an output from the asm (the output ends up being in the
targets), so we can use the old-style asm goto that we've been relying
on for a long time.

So the main code generation problem is just (a) all the architectures
and (b) we'd have to use a fixed conditional against zero.

Linus