re PR tree-optimization/80122 (__builtin_va_arg_pack() and __builtin_va_arg_pack_len...
authorRichard Biener <rguenther@suse.de>
Tue, 21 Mar 2017 11:42:22 +0000 (11:42 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 21 Mar 2017 11:42:22 +0000 (11:42 +0000)
commitda2ce5f993367610a67df1367665dda8a0abc354
tree6c14e5dc64408db56178bba818a5fdef94d174eb
parent8c00ae2406531c22960650d2d2b0687b71fde52b
re PR tree-optimization/80122 (__builtin_va_arg_pack() and __builtin_va_arg_pack_len() does not work correctly)

2017-03-21  Richard Biener  <rguenther@suse.de>

PR tree-optimization/80122
* tree-inline.c (copy_bb): Do not expans va-arg packs or
va_arg_pack_len when the inlined call stmt requires pack
expansion itself.
* tree-inline.h (struct copy_body_data): Make call_stmt a gcall *.

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

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