2010-10-22 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 22 Oct 2010 19:03:39 +0000 (19:03 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 22 Oct 2010 19:03:39 +0000 (19:03 +0000)
commit96cfc375c157d831b5278901b06c9a3da95691d3
treeaba9c0452722f367214fd539f57871adfd8cbd2c
parenta219c38933e767e8ba9ae7a486e9e301bec993f2
2010-10-22  Richard Guenther  <rguenther@suse.de>

PR middle-end/46137
* gimple-fold.c (gimplify_and_update_call_from_tree): Properly
remove the virtual operands if they are not needed.

* c-c++-common/torture/pr46137.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165852 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/gimple-fold.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/torture/pr46137.c [new file with mode: 0644]