This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [tree-ssa] RETURN_EXPR argument


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~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]