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


Xanthakis Stelios <sxanth at ceid dot upatras dot gr> writes:

| On Sat, 15 Mar 2003, Robert Dewar wrote:
| 
| 
| > 1. It does not work now, and we don't care
| > 
| > 2. It works now, but by accident, and might stop working in the future
| > 
| > 3. It works now, and you can reasonably expect it to work in the future
| > (obviously guarantees can be made in this environment).
| > 
| 
| I vote for 3.

It is not vote time.  That was a bug and fixed -- see RTH's message.
 
| With the logic "an inline is as fast as a macro"
| an inline function has nothing to do with the stack.

Sure, it has all to do with the stack.  For example, local variables
in an inline function have to be put the in caller stack.  And any
manipulation of the inline callee stack frame now has to be done on
the caller's stack.

-- Gaby


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