# Re: \[RFC\] LKMM: Add volatile\_if()

- From: Linus Torvalds \<torvalds@linux-foundation.org\>
- Date: 2021-06-06 18:54:14 
- List: linux-toolchains
- Page: https://ratatoskr.run/linux-toolchains/2021/06/1404043
- Thread: https://ratatoskr.run/linux-toolchains/2021/06/1402437/t.md

```text
On Sun, Jun 6, 2021 at 11:48 AM Linus Torvalds
[ref] 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
```
