bison ./ChangeLog data/glr.c src/output.c src/t...
Akim Demaille <[email protected]>
| Newsgroups | gmane.comp.parsers.bison.cvs |
|---|---|
| Message-ID | <[email protected]> |
CVSROOT: /cvsroot/bison Module name: bison Changes by: Akim Demaille <[email protected]> 02/10/13 14:50:40 Modified files: . : ChangeLog data : glr.c src : output.c tables.c Log message: Let nondeterministic skeletons be usable with deterministic tables. With the patch, GAWK compiled by GCC without -O2 passes its test suite using a GLR parser driven by LALR tables. It fails with -O2 because `struct stat' gives two different answers on my machine: 88 (definition of an auto var) and later 96 (memset on this var). Hence the stack is badly corrumpted. The headers inclusion is to blame: if I move the awk.h inclusion before GLR's system header inclusion, the two struct stat have the same size. * src/tables.c (pack_table): Always create conflict_table. (token_actions): Always create conflict_list. * data/glr.c (YYFLAG): Remove, unused. CVSWeb URLs: http://savannah.gnu.org/cgi-bin/viewcvs/bison/bison/ChangeLog.diff?tr1=1.855&tr2=1.856&r1=text&r2=text http://savannah.gnu.org/cgi-bin/viewcvs/bison/bison/data/glr.c.diff?tr1=1.12&tr2=1.13&r1=text&r2=text http://savannah.gnu.org/cgi-bin/viewcvs/bison/bison/src/output.c.diff?tr1=1.194&tr2=1.195&r1=text&r2=text http://savannah.gnu.org/cgi-bin/viewcvs/bison/bison/src/tables.c.diff?tr1=1.6&tr2=1.7&r1=text&r2=text