This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: gcc forgets to decrease esp after function call
Vladimir Simonov writes:
> Hi again,
>
> Ok, thank you.
> I'll try to prepare minimal testcase. It is not so easy
> because the problem apears while handling complex
> templated code.
>
> But I need advices about workarround the problem.
> Say,
> How can I force gcc to use ebp instead of
> esp to address local variables?
-fno-omit-frame-pointer ought to do it.
Andrew.