https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102762
--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-10 branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:724177df8e159dc3f70cd0e13a598e10dd321f37 commit r10-10462-g724177df8e159dc3f70cd0e13a598e10dd321f37 Author: Richard Biener <rguent...@suse.de> Date: Fri Oct 15 08:41:57 2021 +0200 ipa/102762 - fix ICE with invalid __builtin_va_arg_pack () use We have to be careful to not break the argument space calculation. If there's not enough arguments just do not append any. 2021-10-15 Richard Biener <rguent...@suse.de> PR ipa/102762 * tree-inline.c (copy_bb): Avoid underflowing nargs. * gcc.dg/torture/pr102762.c: New testcase. (cherry picked from commit 11a4714860d2df6ba496d55379e7dc702d5fc425)