Re: [PATCH RFC 4/5] x86/alternative: Improve code generation readability

From: Linus Torvalds
Date: Wed Apr 09 2025 - 17:21:32 EST


On Wed, 9 Apr 2025 at 12:51, Josh Poimboeuf <jpoimboe@xxxxxxxxxx> wrote:
>
> What if we were to use a global asm() to define an alternative .macro
> whenever "alternative.h" gets included?

Yeah, I wouldn't mind that, but I have this dim memory of us having
tried it at some point and it didn't work.

I think the issue was that the in-compiler assembler was not as
complete as the external one (ie not doing macros at all or something
like that).

Linus