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: does g++ perform return-value-optimization?


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.

-- Gaby


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