]> git.saurik.com Git - bison.git/commitdiff
tests: fix missing include caught by g++ 4.4.1.
authorJoel E. Denny <jdenny@clemson.edu>
Fri, 22 Jan 2010 19:53:42 +0000 (14:53 -0500)
committerJoel E. Denny <jdenny@clemson.edu>
Fri, 22 Jan 2010 20:12:40 +0000 (15:12 -0500)
Reported by Tys Lefering.
* HACKING (Release checks): Add note about trying a recent GCC.
* tests/regression.at (_AT_DATA_DANCER_Y): For C++, include
cstdlib for abort.
(_AT_DATA_EXPECT2_Y): Likewise.

ChangeLog
HACKING
tests/regression.at

index 6ef4332b6ea6f2e12dde8492c358f43b647c66b5..62488863a16dcc47916cb05c9fa186553eb08859 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2010-01-22  Joel E. Denny  <jdenny@clemson.edu>
+
+       tests: fix missing include caught by g++ 4.4.1.
+       Reported by Tys Lefering.
+       * HACKING (Release checks): Add note about trying a recent GCC.
+       * tests/regression.at (_AT_DATA_DANCER_Y): For C++, include
+       cstdlib for abort.
+       (_AT_DATA_EXPECT2_Y): Likewise.
+
 2010-01-21  Joel E. Denny  <jdenny@clemson.edu>
 
        * cfg.mk (gnulib_dir): Assume gnulib is a subdirectory.
diff --git a/HACKING b/HACKING
index 680ca999b1a861478061deffd87f579fdd9b4ec3..f16d4f608e06fd08fbf80ba98385fd4d70e4f500 100644 (file)
--- a/HACKING
+++ b/HACKING
@@ -197,6 +197,9 @@ release:
   that it does not make sense for glr.c, which should be ANSI,
   but currently is actually GNU C, nor for lalr1.cc.
 
+- Test with a very recent version of GCC for both C and C++.  Testing
+  with older versions that are still in use is nice too.
+
 
 * Release Procedure
 
index c530428c8e171e5a307ca3920837380d1a73b684..3ef85419fb0f4b54a0624232f358dc1efb53adfa 100644 (file)
@@ -824,7 +824,7 @@ m4_define([_AT_DATA_DANCER_Y],
 [AT_DATA_GRAMMAR([dancer.y],
 [%{
 static int yylex (AT_LALR1_CC_IF([int *], [void]));
-AT_LALR1_CC_IF([],
+AT_LALR1_CC_IF([#include <cstdlib>],
 [#include <stdlib.h>
 #include <stdio.h>
 static void yyerror (const char *);])
@@ -952,7 +952,7 @@ m4_define([_AT_DATA_EXPECT2_Y],
 [AT_DATA_GRAMMAR([expect2.y],
 [%{
 static int yylex (AT_LALR1_CC_IF([int *], [void]));
-AT_LALR1_CC_IF([],
+AT_LALR1_CC_IF([#include <cstdlib>],
 [#include <stdio.h>
 #include <stdlib.h>
 static void yyerror (const char *);])