re PR tree-optimization/52318 (ICE: in execute_todo, at passes.c:1748 with -O3 -ftrac...
authorJakub Jelinek <jakub@redhat.com>
Tue, 21 Feb 2012 09:24:42 +0000 (10:24 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 21 Feb 2012 09:24:42 +0000 (10:24 +0100)
commit949e47e5767ae98fe1f30b1b632d02fe8f553abe
treeec15c0db9203945d35dffdf34ff7e724e6fd048b
parentc2885517fdda8081eca8036dc7715fe9c2c7f5a2
re PR tree-optimization/52318 (ICE: in execute_todo, at passes.c:1748 with -O3 -ftracer -fno-tree-ccp -fno-tree-copy-prop -fno-tree-dce and stpcpy_chk())

PR tree-optimization/52318
* gimple-fold.c (gimplify_and_update_call_from_tree): Add
vdef also to non-pure/const call stmts in the sequence.

* gcc.dg/pr52318.c: New test.

From-SVN: r184428
gcc/ChangeLog
gcc/gimple-fold.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr52318.c [new file with mode: 0644]