This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Stack allocation skips vtable, optimalisation option?
- From: Eljay Love-Jensen <eljay at adobe dot com>
- To: Daan Oosterveld <d dot oosterveld at wanadoo dot nl>, gcc-help at gcc dot gnu dot org
- Date: Thu, 28 Jul 2005 06:48:56 -0500
- Subject: Re: Stack allocation skips vtable, optimalisation option?
Hi Daan,
Even with -O0, the compiler *KNOWS* that foo is a Foo (regardless of your
copy constructor shenanigans), and hence can call Foo::foo directly in main,
without using the vfntbl lookup.
HTH,
--Eljay