From 0cf0bece2e2e353b611277c0212df9abf186af77 Mon Sep 17 00:00:00 2001 From: guoshichao Date: Thu, 20 Jun 2024 14:12:50 +0800 Subject: [PATCH] arch/strarg: provide the stdarg implementation for greenhills compiler the greenhills compiler provide its own implementation of va_start, va_end, va_arg, va_copy. so if we are build vela with greenhills compiler, we should using the stdarg implementation provided by greenhills, not our own Signed-off-by: guoshichao --- arch/arm/include/stdarg.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/include/stdarg.h b/arch/arm/include/stdarg.h index 26b9088f8ee..4d7db30d687 100644 --- a/arch/arm/include/stdarg.h +++ b/arch/arm/include/stdarg.h @@ -25,6 +25,10 @@ * Included Files ****************************************************************************/ +#ifdef __ghs__ +# include +#else + /**************************************************************************** * Pre-processor Prototypes ****************************************************************************/ @@ -42,4 +46,6 @@ typedef __builtin_va_list va_list; +#endif + #endif /* __ARCH_ARM_INCLUDE_STDARG_H */