This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: does g++ perform return-value-optimization?
- From: Jason Merrill <jason at redhat dot com>
- To: Gabriel Dos Reis <gdr at codesourcery dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 02 May 2002 10:31:41 +0100
- Subject: Re: does g++ perform return-value-optimization?
- References: <3CCD4028.6040706@cdnorthamerica.com><m3ofg2d2m1.fsf@merlin.codesourcery.com>
>>>>> "Gabriel" == Gabriel Dos Reis <gdr@codesourcery.com> writes:
> Jeff Lee <jeff@cdnorthamerica.com> writes:
> | Hi,
> | Does anyone know if g++ performs return-value-optimization?
> GCC-3.1, or later, does.
> | If so, how do you enable it?
> It is turned on at optimization level 2 or with -felide-constructors.
Actually, -felide-constructors, and thus the return value optimization, is
on by default.
Jason