This is the mail archive of the gcc-patches@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: PATCH: optimization/7145: g++ -O with structure initializer &returnvalue optimization generates bad code


>>>>> "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


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