This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Using alloca (or stmt exprs) as a function call argument is bad?
- To: rth at redhat dot com
- Subject: Re: Using alloca (or stmt exprs) as a function call argument is bad?
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Sun, 23 Sep 2001 10:55:43 -0400 (EDT)
- Cc: gcc at gcc dot gnu dot org
> From: Richard Henderson <rth@redhat.com>
>
> On Mon, Sep 17, 2001 at 02:31:06PM -0400, Kaveh R. Ghazi wrote:
> > And its presumably because alloca is diddling with
> > the stack at the same time function parameters are being pushed there?
>
> Yes.
> r~
So have you any thoughts on how best to have gcc warn the user that
they've just done something dangerous?
E.g. gcc/c-typeck.c:error_init() line 4594...
I'd like to automate finding these cases.
--
Kaveh R. Ghazi Engagement Manager / Project Services
ghazi@caip.rutgers.edu Qwest Internet Solutions