2016-10-06 Richard Biener <rguenther@suse.de>
commit1424fde5f167e5ce7a699c830521bd99ee073203
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 6 Oct 2016 12:17:53 +0000 (6 12:17 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 6 Oct 2016 12:17:53 +0000 (6 12:17 +0000)
tree649109b6e87828a4f4ec949e7392f4ede2ff966f
parenta22dd5ecadcc7fde24a680575afcb412d4c24c7d
2016-10-06  Richard Biener  <rguenther@suse.de>

PR tree-optimization/77855
* tree-ssa-pre.c (prune_clobbered_mems): Queue exprs to remove
instead of removing the current item while iterating over the set
which is not safe.

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@240832 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr77855.c [new file with mode: 0644]
gcc/tree-ssa-pre.c