https://gcc.gnu.org/bugzilla/show_bug.cgi?id=10980
--- Comment #14 from Andrew Pinski <pinskia at gcc dot gnu.org> --- We have __builtin_va_arg_pack and __builtin_va_arg_pack_len which I think solves this problem really. https://gcc.gnu.org/onlinedocs/gcc-11.2.0/gcc/Constructing-Calls.html#index-_005f_005fbuiltin_005fva_005farg_005fpack