Explicitly defining a copy-constructor may cost a lot: optimization bug?

Giovanni Bajo giovannibajo@libero.it
Wed Aug 11 16:54:00 GMT 2004


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





More information about the Gcc mailing list