guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: alloca bug


From: Neil Jerram
Subject: Re: alloca bug
Date: Tue, 12 Dec 2006 21:44:57 +0000
User-agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux)

Jon Wilson <address@hidden> writes:

> Hi,
> So it looks like the blob in libguile/eval.c (lines 40-56) from the
> autoconf manual to define alloca doesn't work on BSD systems.  This is
> in guile 1.8.1.

One thing to be aware of is that the so-called "portable"
implementation of alloca() in alloca.c just doesn't work with Guile,
because it doesn't really allocate memory on the stack.

In fact, alloca.c was removed for this reason in 2004:

2004-09-08  Marius Vollmer  <address@hidden>

        * Makefile.am (EXTRA_libguile_la_SOURCES): Removed "alloca.c".

Does anyone know what caused it to reappear?  ChangeLog doesn't reveal
anything.

Guile fundamentally requires a real alloca, which means it has to be a
compiler builtin.

Regards,
     Neil





reply via email to

[Prev in Thread] Current Thread [Next in Thread]