re PR tree-optimization/77855 (wrong code at -O3 on x86_64-linux-gnu (in both 32...
authorRichard Biener <rguenther@suse.de>
Thu, 6 Oct 2016 12:17:53 +0000 (12:17 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 6 Oct 2016 12:17:53 +0000 (12:17 +0000)
commitb397258804e5a50731f1f8084f7992996b0f3ae0
tree649109b6e87828a4f4ec949e7392f4ede2ff966f
parent139dc3c65114ff2497a0391ca7698992eb57f6cd
re PR tree-optimization/77855 (wrong code at -O3 on x86_64-linux-gnu (in both 32-bit and 64-bit modes))

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.

From-SVN: r240832
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr77855.c [new file with mode: 0644]
gcc/tree-ssa-pre.c