2017-03-21 Richard Biener <rguenther@suse.de>
commit7d9dfee06cdabc3559b63b5d5ca345f83a613cef
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 21 Mar 2017 11:42:22 +0000 (21 11:42 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 21 Mar 2017 11:42:22 +0000 (21 11:42 +0000)
tree6c14e5dc64408db56178bba818a5fdef94d174eb
parent6a3153a3e7a366464790ddb59459ce7cf8b8e0b5
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@246313 138bc75d-0d04-0410-961f-82ee72b054a4
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