From 99a8287f08424d00d0cf09886b967983789c2368 Mon Sep 17 00:00:00 2001 From: Maximilian Brune Date: Tue, 8 Aug 2023 21:43:18 +0200 Subject: libpayload/include/stdarg.h: Add va_copy builtin Add the builtin to copy variadic lists/arguments. Signed-off-by: Maximilian Brune Change-Id: I4507b901bdce052c5d1701fdf825eb8a96a5b55a Reviewed-on: https://review.coreboot.org/c/coreboot/+/77097 Reviewed-by: Martin L Roth Tested-by: build bot (Jenkins) --- payloads/libpayload/include/stdarg.h | 1 + 1 file changed, 1 insertion(+) (limited to 'payloads/libpayload/include/stdarg.h') diff --git a/payloads/libpayload/include/stdarg.h b/payloads/libpayload/include/stdarg.h index 772d07234e..340cd44fac 100644 --- a/payloads/libpayload/include/stdarg.h +++ b/payloads/libpayload/include/stdarg.h @@ -40,6 +40,7 @@ #define va_start(v,l) __builtin_va_start(v,l) #define va_end(v) __builtin_va_end(v) #define va_arg(v,l) __builtin_va_arg(v,l) +#define va_copy(d,s) __builtin_va_copy(d,s) typedef __builtin_va_list va_list; #else #include_next -- cgit v1.2.3