]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
debug: mark __libc_message_wrapper as always inline
authorYury Khrustalev <yury.khrustalev@arm.com>
Wed, 29 Oct 2025 15:59:53 +0000 (15:59 +0000)
committerYury Khrustalev <yury.khrustalev@arm.com>
Fri, 31 Oct 2025 10:01:33 +0000 (10:01 +0000)
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 <adhemerval.zanella@linaro.org>
include/stdio.h

index 181a746949ca1bde104670e3799da69473fb2fe3..b892c5b4af9aac0c2518dc1c5175bb94305921c5 100644 (file)
@@ -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)
     {