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: Explicitly defining a copy-constructor may cost a lot: optimization bug?


Roberto Bagnara wrote:

> However, the attached snippet shows that, using GCC 3.4.1
> alternative (a) is significantly more expensive than
> alternative (b).

This is already fixed in GCC 3.5.0, thanks to the new optimization
infrastructure which helps C++ code generation a lot.
-- 
Giovanni Bajo




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