From: Paul Eggert Date: Sun, 10 Nov 2002 07:10:08 +0000 (+0000) Subject: Fix the test failure due to GCC warnings described in X-Git-Tag: BISON-1_875~313 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=acea4f3bb60cad073ad575101f80319b49d059d5;p=platform%2Fupstream%2Fbison.git Fix the test failure due to GCC warnings described in . * data/glr.c (yyis_pact_ninf, yyis_table_ninf): New macros, which evaluate to 0 if it's impossible for NINF to be in the respective table. (yygetLRActions, yyrecoverParseError): Use them. * src/scan-gram.l (unexpected_end_of_file): Fix bug: columns were counted in the token inserted at end of file. Now takes location_t *, not location_t, so that the location can be adjusted. All uses changed. * tests/regression.at (Invalid inputs): Adjust wording in diagnostic to match the new behavior. * tests/torture.at (AT_DATA_TRIANGULAR_GRAMMAR, AT_DATA_HORIZONTAL_GRAMMAR, AT_DATA_LOOKAHEADS_GRAMMAR, AT_DATA_STACK_TORTURE): Replace `assert (x);' with `if (! (x)) abort ();'. This reduces the runtime of the "Many lookaheads" test from 27.6 to 2.7 minutes on a 440 MHz Ultrasparc III running GCC 3.2. --- diff --git a/ChangeLog b/ChangeLog index a446e90..9271b19 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,27 @@ +2002-11-09 Paul Eggert + + Fix the test failure due to GCC warnings described in + . + * data/glr.c (yyis_pact_ninf, yyis_table_ninf): New macros, which + evaluate to 0 if it's impossible for NINF to be in the respective + table. + (yygetLRActions, yyrecoverParseError): Use them. + + * src/scan-gram.l (unexpected_end_of_file): Fix bug: columns were + counted in the token inserted at end of file. Now takes + location_t *, not location_t, so that the location can be + adjusted. All uses changed. + + * tests/regression.at (Invalid inputs): Adjust wording in + diagnostic to match the new behavior. + + * tests/torture.at (AT_DATA_TRIANGULAR_GRAMMAR, + AT_DATA_HORIZONTAL_GRAMMAR, AT_DATA_LOOKAHEADS_GRAMMAR, + AT_DATA_STACK_TORTURE): Replace `assert (x);' with `if (! (x)) + abort ();'. This reduces the runtime of the "Many lookaheads" + test from 27.6 to 2.7 minutes on a 440 MHz Ultrasparc III running + GCC 3.2. + 2002-11-07 Paul Eggert * src/parse-gram.y (CHARACTER): Remove unused token.