This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [tree-ssa] RETURN_EXPR argument
- From: Richard Henderson <rth at redhat dot com>
- To: Zdenek Dvorak <rakdver at atrey dot karlin dot mff dot cuni dot cz>
- Cc: gcc at gcc dot gnu dot org, dnovillo at redhat dot com
- Date: Tue, 18 Nov 2003 16:50:25 -0800
- Subject: Re: [tree-ssa] RETURN_EXPR argument
- References: <20031119002056.GA4620@atrey.karlin.mff.cuni.cz>
On Wed, Nov 19, 2003 at 01:20:56AM +0100, Zdenek Dvorak wrote:
> what is the reason for allowing the argument of a RETURN_EXPR to be a
> regular modify statement? It would IMHO be simpler to manipulate
> if there was only the returned value; a comment in tree-simple.c claims
> that "some of expand_return depends on getting a MODIFY_EXPR", but
> the following patch passes at least c testsuite without any problems.
It can eliminate structure copies. Try the C++ testsuite.
r~