Files
bison/tests
Akim Demaille 24233748ec tables: avoid warnings and save bits
The yydefgoto table uses -1 as an invalid for an impossible case (we
never use yydefgoto[0], since it corresponds to the reduction to
$accept, which never happens).  Since yydefgoto is a table of state
numbers, this -1 forces a signed type uselessly, which (1) might
trigger compiler warnings when storing a value from yydefgoto into a
state number (nonnegative), and (2) wastes bits which might result in
using a int16 where a uint8 suffices.

Reported by Jot Dot <jotdot@shaw.ca>.
https://lists.gnu.org/r/bug-bison/2020-11/msg00027.html

* src/tables.c (default_goto): Use 0 rather than -1 as invalid value.
* tests/regression.at: Adjust.
2020-12-03 06:21:53 +01:00
..
2019-02-21 06:46:07 +01:00
2020-01-10 19:16:23 +01:00
2020-09-19 17:49:03 +02:00
2020-01-10 19:16:23 +01:00
2020-09-19 17:49:03 +02:00
2020-11-13 07:01:19 +01:00
2020-11-30 16:48:03 +01:00
2020-11-03 08:46:54 +01:00
2020-05-02 09:27:16 +02:00
2020-01-10 19:16:23 +01:00
2020-05-21 20:14:59 +02:00
2020-09-19 17:49:03 +02:00
2020-01-10 19:16:23 +01:00
2020-11-30 16:48:03 +01:00
2020-09-27 19:29:29 +02:00
2019-11-03 10:32:22 +01:00