------- Comment #20 from rguenth at gcc dot gnu dot org 2009-06-13 19:30 ------- So, if I see correctly the issue only manifests itself if we elide the copy? The C++ FE seems to unconditionally set TREE_ADDRESSABLE on the LHS.
Stripping down the fix to only apply if TREE_ADDRESSABLE is set still causes some missed optimization opportunities, for example for g++.dg/tree-ssa/pr8781.C -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40389