From 7d99ff550f5707158309835b0560e61d536d2f1b Mon Sep 17 00:00:00 2001 From: Yury Khrustalev Date: Wed, 29 Oct 2025 15:59:53 +0000 Subject: [PATCH] debug: mark __libc_message_wrapper as always inline When building with -Og to enable debugging, there is currently a compiler error because if __libc_message_wrapper() is not inline, the __va_arg_pack_len macro cannot be used. Reviewed-by: Adhemerval Zanella --- include/stdio.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/stdio.h b/include/stdio.h index 181a746949..b892c5b4af 100644 --- a/include/stdio.h +++ b/include/stdio.h @@ -185,8 +185,9 @@ _Noreturn void __libc_message_impl (const char *__vmaname, const char *__fmt, #define __libc_assert_vma_name "glibc: assert" #ifdef __va_arg_pack -static inline _Noreturn void __libc_message_wrapper (const char *vmaname, - const char *fmt, ...) +static inline __always_inline +_Noreturn void __libc_message_wrapper (const char *vmaname, + const char *fmt, ...) { if (__va_arg_pack_len () > LIBC_MESSAGE_MAX_ARGS) { -- 2.47.3