re PR middle-end/86505 (__builtin_va_arg_pack_len() computes the number of arguments...
authorRichard Biener <rguenther@suse.de>
Fri, 17 Aug 2018 08:48:58 +0000 (08:48 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 17 Aug 2018 08:48:58 +0000 (08:48 +0000)
commit36a072b429a9501946cb1fafdc9b1af7c574594d
tree40d0364573f5c9199c9b1b3c41447cf007c38188
parentbbcbd744b80c2cd40d7ef41d32dbd6ee7400701f
re PR middle-end/86505 (__builtin_va_arg_pack_len() computes the number of arguments wrongly)

2018-08-17  Richard Biener  <rguenther@suse.de>

PR middle-end/86505
* tree-inline.c (copy_bb): When inlining __builtin_va_arg_pack_len ()
across a va-arg-pack using call adjust its return value accordingly.

* gcc.dg/torture/pr86505.c: New testcase.

From-SVN: r263613
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr86505.c [new file with mode: 0644]
gcc/tree-inline.c