Thread (32 messages) 32 messages, 9 authors, 2025-10-02

Re: [patch V2a 2/6] kbuild: Disable CC_HAS_ASM_GOTO_OUTPUT on clang < version 17

From: Linus Torvalds <torvalds@linux-foundation.org>
Date: 2025-09-29 15:53:58
Also in: linux-fsdevel, lkml

On Mon, 29 Sept 2025 at 04:10, Geert Uytterhoeven [off-list ref] wrote:
quoted
Ah, d'0h indeed.

void b(void **);void* c();int f(void){{asm goto(""::::l0);return 0;l0:return 1;}void *x __attribute__((cleanup(b))) = c();{asm goto(""::::l1);return 2;l1:return 1;}}

Seems to still finger the issue on x86_64. That should build on !x86
too, right?
Thanks, builds fine on arm32, arm64, riscv, m68k, powerpc, mips, s390.
Ok, I just applied that fix directly. It's clearly not a fatal bug
since it just falls back on the non-optimal code, but it's one of
those "silly and subtle code generation issues" so I'd rather have it
fixed asap in the upstream kernel.

Geert, thanks for noticing.

             Linus
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help