]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/ChangeLog
re PR c++/40389 (optimizer bug (possibly))
authorRichard Guenther <rguenther@suse.de>
Sat, 13 Jun 2009 22:58:13 +0000 (22:58 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Sat, 13 Jun 2009 22:58:13 +0000 (22:58 +0000)
commit1d24fdd92a0189c05fedccebfdfb696fee999a4d
tree8ff0bc85b42906f5dd2e481e0620be0c340e16de
parent4b29c5e5434f7aaaabd4b6f314139fde5803b513
re PR c++/40389 (optimizer bug (possibly))

2009-06-14  Richard Guenther  <rguenther@suse.de>

PR middle-end/40389
* gimple.c (walk_stmt_load_store_addr_ops): The LHS of a call
has its address taken if NRV was applied and it is addressable.
* tree-ssa-structalias.c (get_constraint_for_address_of): New
function split out from ...
(get_constraint_for_1): ... here.
(handle_rhs_call): Use it to mark the return slot escaped if
it is addressable and NRV was applied.

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

From-SVN: r148462
gcc/ChangeLog
gcc/gimple.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/torture/pr40389.C [new file with mode: 0644]
gcc/tree-ssa-structalias.c