From: Joel E. Denny Date: Fri, 22 Jan 2010 19:53:42 +0000 (-0500) Subject: tests: fix missing include caught by g++ 4.4.1. X-Git-Tag: v2.7.90~718 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/95611b56170082a1152416368f519f4392123fdd 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. --- diff --git a/ChangeLog b/ChangeLog index 6ef4332b..62488863 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2010-01-22 Joel E. Denny + + 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 * cfg.mk (gnulib_dir): Assume gnulib is a subdirectory. diff --git a/HACKING b/HACKING index 680ca999..f16d4f60 100644 --- 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 diff --git a/tests/regression.at b/tests/regression.at index c530428c..3ef85419 100644 --- a/tests/regression.at +++ b/tests/regression.at @@ -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 ], [#include #include 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 ], [#include #include static void yyerror (const char *);])