Skip to content

Commit 8b07f74

Browse files
committed
Merge tag 'core-urgent-2025-09-26' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull core fix from Ingo Molnar: "Fix a CONFIG_CC_HAS_ASM_GOTO_OUTPUT=y bug on older Clang versions" * tag 'core-urgent-2025-09-26' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: kbuild: Disable CC_HAS_ASM_GOTO_OUTPUT on clang < 17
2 parents f26a246 + e2ffa15 commit 8b07f74

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

init/Kconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,10 @@ config GCC_ASM_GOTO_OUTPUT_BROKEN
9999
config CC_HAS_ASM_GOTO_OUTPUT
100100
def_bool y
101101
depends on !GCC_ASM_GOTO_OUTPUT_BROKEN
102+
# Detect basic support
102103
depends on $(success,echo 'int foo(int x) { asm goto ("": "=r"(x) ::: bar); return x; bar: return 0; }' | $(CC) -x c - -c -o /dev/null)
104+
# Detect clang (< v17) scoped label issues
105+
depends on $(success,echo 'void b(void **);void* c(void);int f(void){{asm goto("jmp %l0"::::l0);return 0;l0:return 1;}void *x __attribute__((cleanup(b)))=c();{asm goto("jmp %l0"::::l1);return 2;l1:return 3;}}' | $(CC) -x c - -c -o /dev/null)
103106

104107
config CC_HAS_ASM_GOTO_TIED_OUTPUT
105108
depends on CC_HAS_ASM_GOTO_OUTPUT

0 commit comments

Comments
 (0)