This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [tree-ssa] Lowering of VLA's
On Mon, 2003-08-25 at 15:53, Zdenek Dvorak wrote:
> >
> > The point is calls are already handled, we dont have to add anything
> > anywhere.
>
> except that you will have to look everywhere where calls are handled and
> check whether it does not change anything.
??? I dont understand. We dont look at what is being called, just that
its a function call. You are making a function call, just like the other
8,000,000 calls we process every day.. I dont have to go look anywhere
to see if its broken. Otherwise we'd never be able to compile a user
program. You aren't changing the semantics of CALL_EXPR, for instance.
That would be the only time Id have to go check eveyrwhere we process
it.
> > Doesn't it behave exactly like a call which is inlined and bumps the
> > stack pointer?
>
> In current state, no. Once allocation and deallocation is added, I
> agree making them just function calls may be best (I will have to think
> about it more; still I fear some interaction with rest of gcc).
>
THis is exactly the kind of thing builtin functions are for... treat it
like a function call until its time to expand it later on.
Andrew