bug-gnu-utils
[Top][All Lists]
Advanced

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

Bison 1.30e parsers use alloca when not requested, and vice versa


From: Paul Eggert
Subject: Bison 1.30e parsers use alloca when not requested, and vice versa
Date: Tue, 27 Nov 2001 04:22:12 -0800 (PST)

> From: Akim Demaille <address@hidden>
> Date: 26 Nov 2001 18:11:32 +0100
> 
> Quizz of the week: is this going to be 1.31?...

I don't think it's quite ready yet; there are some memory allocation
problems in bison.simple.

For starters, here's a fix for what appears to be a simple typo with
interesting consequences.  I'll try to send more bug reports to
bug-gnu-utils soon.

2001-11-27  Paul Eggert  <address@hidden>

        * src/bison.simple (YYSTACK_REALLOC):
        Fix typo that caused us to use alloca when we
        didn't want to, and vice versa.

===================================================================
RCS file: src/bison.simple,v
retrieving revision 1.30.5.0
retrieving revision 1.30.5.1
diff -pu -r1.30.5.0 -r1.30.5.1
--- src/bison.simple    2001/11/19 09:13:14     1.30.5.0
+++ src/bison.simple    2001/11/27 12:15:55     1.30.5.1
@@ -78,7 +78,7 @@
 
 /* Realloc WHAT from SIZE to YYSTACKSIZE elements of TYPE.
    If WHAT was malloc'ed (not the original automatic ARRAY), free it. */
-#if YYSTACK_USE_ALLOCA
+#if !YYSTACK_USE_ALLOCA
 # define YYSTACK_REALLOC(Type, What, Array)                            \
 do {                                                                   \
   Type *old = What;                                                    \



reply via email to

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