This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: alloca + inline
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: Xanthakis Stelios <sxanth at ceid dot upatras dot gr>
- Cc: Robert Dewar <dewar at gnat dot com>, neil at daikokuya dot co dot uk, gcc at gcc dot gnu dot org
- Date: 16 Mar 2003 10:32:14 +0100
- Subject: Re: alloca + inline
- Organization: Integrable Solutions
- References: <Pine.GSO.4.21.0303160034110.29630-100000@zenon.ceid.upatras.gr>
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