This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Explicitly defining a copy-constructor may cost a lot: optimization bug?
- From: "Giovanni Bajo" <giovannibajo at libero dot it>
- To: gcc at gcc dot gnu dot org
- Date: Wed, 11 Aug 2004 18:07:11 +0200
- Subject: Re: Explicitly defining a copy-constructor may cost a lot: optimization bug?
- References: <411A2D47.708@cs.unipr.it>
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