Using alloca in function parameters buggy or works ???
Dave Korn
dk@artimi.com
Thu Sep 16 17:42:00 GMT 2004
> -----Original Message-----
> From: Graham Stott
> Sent: 16 September 2004 17:36
> > And how about calling alloca in a varargs function that
> has an eliminated
> > frame pointer and incoming args space? That could be a
> good way to expose
> > latent bugs...... <g>
> >
> The backends usually say the frame_pointer is needed if
> alloca is used.
>
> Graham
> -----Original Message-----
> From: Andreas Schwab
> Sent: 16 September 2004 17:39
> "Dave Korn" writes:
>
> > And how about calling alloca in a varargs function that
> has an eliminated
> > frame pointer and incoming args space? That could be a
> good way to expose
> > latent bugs...... <g>
>
> Use of alloca should force a frame pointer. I don't think
> that GCC got that ever wrong.
Well, like I say, combining alloca and varargs ought to make a good
testcase!
cheers,
DaveK
--
Can't think of a witty .sigline today....
More information about the Gcc
mailing list