re PR tree-optimization/49115 (invalid return value optimization (?) when exception...
authorRichard Guenther <rguenther@suse.de>
Mon, 23 May 2011 12:08:41 +0000 (12:08 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 23 May 2011 12:08:41 +0000 (12:08 +0000)
commit094f6ab3d5aa9753f5fc0c36a8cdfef4c2938140
tree517ad43ddd93528a11fead28a4b00d0da1d17b8b
parent9a9822e13ece30035ad18fed7f3946d8b1ce67a9
re PR tree-optimization/49115 (invalid return value optimization (?) when exception is thrown and caught)

2011-05-23  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/49115
* tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
is not necessarily carried out, do not claim it kills the ref.
* tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.

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

From-SVN: r174066
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/torture/pr49115.C [new file with mode: 0644]
gcc/tree-ssa-alias.c
gcc/tree-ssa-dce.c