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]

Re: Using alloca (or stmt exprs) as a function call argument is bad?


 > From: Richard Henderson <rth@redhat.com>
 > 
 > On Sun, Sep 23, 2001 at 10:55:43AM -0400, Kaveh R. Ghazi wrote:
 > > So have you any thoughts on how best to have gcc warn the user that
 > > they've just done something dangerous?
 > 
 > Dunno.  It'd probably be just as easy to fix it as to warn.
 > r~

What, fix alloca so that it doesn't conflict with function parameters
put on the stack?

Well, IIRC other cc compilers had this problem too as would all older
versions of gcc.  So it would be nice to still warn about it IMHO.

		--Kaveh
--
Kaveh R. Ghazi			Engagement Manager / Project Services
ghazi@caip.rutgers.edu		Qwest Internet Solutions


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