bug-gnulib
[Top][All Lists]
Advanced

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

Re: [bug-gnulib] Re: getdate don't need alloca


From: Stepan Kasal
Subject: Re: [bug-gnulib] Re: getdate don't need alloca
Date: Tue, 21 Dec 2004 09:18:52 +0100
User-agent: Mutt/1.4.1i

Hello Paul,

On Mon, Dec 20, 2004 at 11:53:38AM -0800, Paul Eggert wrote:
>  - Macro: YYSTACK_USE_ALLOCA
>      Macro used to control the use of `alloca'.  If defined to `0', the
>      parser will not use `alloca' but `malloc' when trying to grow its
>      internal stacks.  Do _not_ define `YYSTACK_USE_ALLOCA' to anything
>      else.

well, then Bruno's bug report
   http://lists.gnu.org/archive/html/bug-gnulib/2004-12/msg00118.html

points out a problem with bison:

When you don't define `YYSTACK_USE_ALLOCA', you can never be sure whether
alloca will really be used.  Perhaps you forgot to include alloca if that
were needed, perhaps the alloca() is not a macro, but real function.
In all these cases, the code _silently_ falls back to the ineffective
malloc.

I think bison-generated code should behave more transparently and propose
the patch attached to this mail.

Have a nice day,
        Stepan Kasal

Attachment: bison-20041220-use-alloca.patch
Description: Text document


reply via email to

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