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  <adhemerval.zanella@linaro.org>
This commit is contained in:
Yury Khrustalev 2025-10-29 15:59:53 +00:00
parent 2f77aec043
commit 7d99ff550f
1 changed files with 3 additions and 2 deletions

View File

@ -185,7 +185,8 @@ _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,
static inline __always_inline
_Noreturn void __libc_message_wrapper (const char *vmaname,
const char *fmt, ...)
{
if (__va_arg_pack_len () > LIBC_MESSAGE_MAX_ARGS)