This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: alloca is bad?
- To: meissner at cygnus dot com
- Subject: Re: alloca is bad?
- From: Nick Duffek <nsd at redhat dot com>
- Date: Mon, 13 Nov 2000 16:29:41 -0500
- CC: gdb at sources dot redhat dot com
- References: <20001113152141.07868@cse.cygnus.com>
On 13-Nov-2000, Michael Meissner wrote:
>That won't work, since alloca is a builtin provided by GCC.
That can be disabled by compiling with -fno-builtin.
>If GCC is detected as the compiler at configuration time, then alloca is
>not even built into libiberty.
True, but that's easy to circumvent.
Using -lefence or other debugging mallocs to debug alloca overruns isn't
as easy as a simple relink, but it doesn't seem fundamentally difficult.
Nick