This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


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

Re: alloca is bad?


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

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