This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/30590] [4.1/4.2/4.3 Regression] tree-nrv optimization clobbers return variable
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Mar 2007 16:52:36 -0000
- Subject: [Bug tree-optimization/30590] [4.1/4.2/4.3 Regression] tree-nrv optimization clobbers return variable
- References: <bug-30590-1501@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #8 from rguenth at gcc dot gnu dot org 2007-03-13 16:52 -------
Use get_base_address (GIMPLE_STMT_OPERAND (stmt, 0)) == result. (Verify if
get_base_address does not return NULL, if it's the result_decl, otherwise
replicate the loop therein).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30590