This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: optimization/7145: g++ -O with structure initializer &returnvalue optimization generates bad code
- From: Jason Merrill <jason at redhat dot com>
- To: "H. J. Lu" <hjl at lucon dot org>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 01 Jul 2002 10:29:09 +0100
- Subject: Re: PATCH: optimization/7145: g++ -O with structure initializer &returnvalue optimization generates bad code
- References: <20020629082604.C10851@lucon.org>
>>>>> "H" == H J Lu <hjl@lucon.org> writes:
> I don't think we can do named return value optimization if the return
> value is initialized by "{...}". Here is a patch. Tested on gcc 3.1.1
> on Linux/x86 and Linux/alpha.
I think we can. Please send a testcase.
Jason