Re: [RFC] LKMM: Add volatile_if()

From
Linus Torvalds <torvalds@linux-foundation.org>
Date
2021-06-06 18:54:14
Also in
linux-arch, lkml
Reply to
Linus Torvalds, 2021-06-06
On Sun, Jun 6, 2021 at 11:48 AM Linus Torvalds
[off-list 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
Thread (121 messages) 121 messages, 13 authors, last reply 2021-09-24
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help