]> git.saurik.com Git - bison.git/commitdiff
* data/yacc.c (yyexhaustedlab): Define it when YYERROR_VERBOSE is
authorJoel E. Denny <jdenny@ces.clemson.edu>
Fri, 3 Aug 2007 04:51:23 +0000 (04:51 +0000)
committerJoel E. Denny <jdenny@ces.clemson.edu>
Fri, 3 Aug 2007 04:51:23 +0000 (04:51 +0000)
true since it's then always used regardless of whether yyoverflow is
defined.  Reported by Christian Burger at
<http://lists.gnu.org/archive/html/bug-bison/2007-07/msg00031.html>.
* THANKS: Add Christian Burger.

ChangeLog
THANKS
data/yacc.c

index 4573fc0c12f7b56082896a9b5ac145c75ca01301..40c7b877c34c7e42288dc116781d4990eb72c7f2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2007-08-03  Joel E. Denny  <jdenny@ces.clemson.edu>
+
+       * data/yacc.c (yyexhaustedlab): Define it when YYERROR_VERBOSE is
+       true since it's then always used regardless of whether yyoverflow is
+       defined.  Reported by Christian Burger at
+       <http://lists.gnu.org/archive/html/bug-bison/2007-07/msg00031.html>.
+       * THANKS: Add Christian Burger.
+
 2007-07-28  Joel E. Denny  <jdenny@ces.clemson.edu>
 
        * src/muscle_tab.c (muscle_percent_define_flag_if): In order to
diff --git a/THANKS b/THANKS
index d0e84fc5b4f8bc1ae9d665651f21f8fdb1461044..d1a2da140e39882de104909ef3240864a45a9cb1 100644 (file)
--- a/THANKS
+++ b/THANKS
@@ -19,6 +19,7 @@ Brandon Lucia             blucia@gmail.com
 Bruce Lilly               blilly@erols.com
 Bruno Haible              bruno@clisp.org
 Charles-Henri de Boysson  de-boy_c@epita.fr
+Christian Burger          cburger@sunysb.edu
 Cris Bailiff              c.bailiff+bison@awayweb.com
 Cris van Pelt             cris@amf03054.office.wxs.nl
 Daniel Hagerty            hag@gnu.org
index 4ec1f4a1d706203b2b33b0e24eb81c37249286fa..8fe8596f9a8b44b8c66e1ca00b2a60ce00b51c30 100644 (file)
@@ -1448,7 +1448,7 @@ yyabortlab:
   yyresult = 1;
   goto yyreturn;
 
-#ifndef yyoverflow
+#if !defined(yyoverflow) || YYERROR_VERBOSE
 /*-------------------------------------------------.
 | yyexhaustedlab -- memory exhaustion comes here.  |
 `-------------------------------------------------*/