https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100791
--- Comment #7 from CVS Commits ---
The releases/gcc-10 branch has been updated by Richard Biener
:
https://gcc.gnu.org/g:be85daaecc3ae2da8707e22dc1ef19c21c3e503f
commit r10-9923-gbe85daaecc3ae2da8707e22dc1ef19c21c3e503f
Author: Richard Biener
Date: Fri May 28 13:31:35 2021 +0200
ipa/100791 - copy fntype when processing __builtin_va_arg_pack
This missing copying exposed a type mismatch in the IL.
2021-05-28 Richard Biener
PR ipa/100791
* tree-inline.c (copy_bb): When processing __builtin_va_arg_pack
copy fntype from original call.
* gcc.dg/pr100791.c: New testcase.
(cherry picked from commit 359c0a86e2974a9f3036bc05b6e6c661f2c463cf)