]> git.ipfire.org Git - thirdparty/gcc.git/commit
ipa/102762 - fix ICE with invalid __builtin_va_arg_pack () use
authorRichard Biener <rguenther@suse.de>
Fri, 15 Oct 2021 06:41:57 +0000 (08:41 +0200)
committerRichard Biener <rguenther@suse.de>
Fri, 15 Oct 2021 07:33:51 +0000 (09:33 +0200)
commit11a4714860d2df6ba496d55379e7dc702d5fc425
treeda0e935bd920b0f66a33edc52f627a5ecf2f0723
parentbe072bfa5bb3817168daa0a4a398cd9bd915a726
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  <rguenther@suse.de>

PR ipa/102762
* tree-inline.c (copy_bb): Avoid underflowing nargs.

* gcc.dg/torture/pr102762.c: New testcase.
gcc/testsuite/gcc.dg/torture/pr102762.c [new file with mode: 0644]
gcc/tree-inline.c