This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: alloca is bad?
- To: cgf at redhat dot com
- Subject: Re: alloca is bad?
- From: Eli Zaretskii <eliz at delorie dot com>
- Date: Fri, 10 Nov 2000 05:39:29 -0500 (EST)
- CC: gdb at sources dot redhat dot com
- References: <20001109212032.A26464@redhat.com>
- Reply-to: Eli Zaretskii <eliz at is dot elta dot co dot il>
> Date: Thu, 9 Nov 2000 21:20:32 -0500
> From: Christopher Faylor <cgf@redhat.com>
>
> I was surprised by this assertion and so I thought I'd ask for a
> consensus here. Should the use of alloca be deprecated in gdb?
In my experience, there's nothing wrong with alloca as long as it is
used for allocating small buffers. The only consideration is that not
every platform supports alloca.