2010-10-05 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 5 Oct 2010 10:37:12 +0000 (10:37 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 5 Oct 2010 10:37:12 +0000 (10:37 +0000)
commita3087021d7755ae6abc954ddc811503c17966a21
tree05ebfcb5ef936e811e19a264334216b2b41c4b19
parent7892aafd743c092bcbb34274456384f1af246d2f
2010-10-05  Richard Guenther  <rguenther@suse.de>

PR middle-end/45877
* gimple-fold.c (gimplify_and_update_call_from_tree): Handle
case where gimplification optimizes away the stmt.

* g++.dg/torture/pr45877.C: New testcase.

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