This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: alloca + inline
- From: dewar at gnat dot com (Robert Dewar)
- To: gdr at integrable-solutions dot net, sxanth at ceid dot upatras dot gr
- Cc: gcc at gcc dot gnu dot org
- Date: Sun, 16 Mar 2003 09:52:13 -0500 (EST)
- Subject: Re: alloca + inline
> I tend to see inline functions as compound statements
> in expressions. When I said that it has nothing to do
> with the stack, I meant exactly what you say: all it's
> locals are in the caller's stack and therefore the function
> will not sub/add esp.
You may see things this way, but C does not, inlining should be
semantically neutral. It should not change the behavior of a well
defined program, if it does, as in this case, it is a bug!