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]

PATCH: optimization/7145: g++ -O with structure initializer & returnvalue optimization generates bad code


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.


H.J.

Attachment: gcc-cpp-named.patch
Description: Text document


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