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: 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!


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