summaryrefslogtreecommitdiff
path: root/THANKS
Commit message (Collapse)AuthorAgeFilesLines
* Add -Wother so -Wnone suppresses all warnings.Joel E. Denny2011-04-091-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reported by George Neuner at <http://lists.gnu.org/archive/html/bug-bison/2010-08/msg00002.html>. * NEWS (2.5): Document. * THANKS (George Neuner): Add. * doc/bison.texinfo (Bison Options): Document. * src/complain.c, src/complain.h (warn_at, warn_at_indent, warn): Suppress warning if -Wno-other. (midrule_value_at): New warning function, similar to yacc_at in that it's controlled by its own warning category. * src/getargs.c (warnings_flag): Initialize to warnings_other. (warnings_args, warnings_types): Add entry for warnings_other. (usage): Update. * src/getargs.h (enum warnings): Add entry for warnings_other. * src/gram.c (grammar_rules_useless_report): If -Wno-other, then don't print useless rules. * src/reader.c (symbol_should_be_used): Rather than adjusting the return value based on whether midrule value warnings are enabled, accept a new parameter for telling the caller whether true is being returned for a potential midrule warning. (grammar_rule_check): Use midrule_value_at for midrule value warnings, and continue to use warn_at for all other warnings. Let them check whether the warnings are enabled. * tests/local.at (AT_BISON_CHECK): Update documentation. (AT_BISON_CHECK_NO_XML): Check that -Wnone and --warnings=none disable all warnings exercised in the test suite. (cherry picked from commit 8ffd7912e3b71fb0cc69e83225c3ad8e3452270f)
* named references: fix double free.candidates/named-ref-freeAkim Demaille2011-03-091-1/+1
| | | | | | | | | | | | | | | | | | | | | In `rhs[name]: "a" | "b"', do not free "name" twice. Reported by Tys Lefering. <http://lists.gnu.org/archive/html/bug-bison/2010-06/msg00002.html> * src/named-ref.h, src/named-ref.c (named_ref_copy): New. * src/parse-gram.y (current_lhs): Rename as... (current_lhs_symbol): this. (current_lhs): New function. Use it to free the current lhs named reference. * src/reader.c: Bind lhs to a copy of the current named reference. * src/symlist.c: Rely on free (0) being valid. * tests/named-refs.at: Test this. (cherry picked from commit 8f462efe923947cc4e72deea5b0fa93a5f88000d) Conflicts: src/parse-gram.y
* java: fix parser stack popping bug.Angelo Borsotti2011-03-061-0/+1
| | | | | | | | | | | | | | Reported at <http://lists.gnu.org/archive/html/bug-bison/2011-02/msg00005.html>. * THANKS (Angelo Borsotti): Add. * data/lalr1.java (YYParser::YYStack::pop): Fix off-by-one error in clearing the value stack. Previously, the top element of the stack wasn't cleared and so the value was not garbage collected. (cherry picked from commit 6f75992be50b83a084f955f63e5c35ccc8705f08) Conflicts: data/lalr1.java
* java: fix location handling bug.Bernd Kiefer2011-02-191-0/+1
| | | | | | | | | Reported at <http://lists.gnu.org/archive/html/bison-patches/2011-02/msg00005.html>. * data/lalr1.java (YYParser::yylloc): For non-empty RHS, fix reversed access to location stack. * THANKS (Bernd Kiefer): Add. (cherry picked from commit 8db68289d1162b763606fe5271a7529408224d38)
* Correct my email address.Joel E. Denny2011-01-021-1/+1
| | | | | * ChangeLog: In all recent entries. * THANKS (Joel E. Denny): Here.
* doc: fix lalr1.cc documentation.Akim Demaille2010-05-101-0/+1
| | | | | | | | | | | | | | | * doc/bison.texinfo (C++ Scanner Interface): Fix yylex signature. (C++ Bison Interface): Fix lalr1.cc skeleton name. (C++ Parser Interface): Fix semantic_type and location_type names. Document yy::parser::token. Reported by Jerry Quinn. (cherry picked from commit 0100cd629d91e3e799b9feb7182965ff348ba61c) Conflicts: ChangeLog doc/bison.texinfo
* tests: fix for newer Sun Studio C++.Joel E. Denny2010-04-101-0/+1
| | | | | | | | | | | | | | | Reported by Dagobert Michelsen at <http://lists.gnu.org/archive/html/bug-bison/2010-03/msg00023.html>. * THANKS (Dagobert Michelsen): Add. * configure.ac (AC_PREREQ): Set to 2.64 so we get the latest Autoconf macro for handling the restrict keyword. * gnulib: Update to latest, which no longer overrides that macro from Autoconf. (cherry picked from commit 4333ba11c65f428040d54820b6d4c6aa663944d2) Conflicts: configure.ac
* portability: fix spawning on at least FreeBSD 8 and FreeBSD 9.Joel E. Denny2010-03-231-0/+1
| | | | | | | | | | | | | | | Reported by Johan van Selst at <http://lists.gnu.org/archive/html/bug-bison/2010-03/msg00014.html>. * NEWS (2.4.3): New. * THANKS (Johan van Selst): Add. * etc/prefix-gnulib-mk (prefix): Adjust regex for makefile targets so that gnulib's new c++defs.h is matched. * gnulib: Update to latest. (cherry picked from commit 311b2e56eaad952fc7908336e3aeb019dd8bf1ee) Conflicts: NEWS
* portability: fix several issues with M4 subprocess.Joel E. Denny2010-02-221-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | M4's output pipe was not being drained upon fatal errors during scan_skel. As a result, broken-pipe messages from M4 were seen on at least AIX, HP-UX, Solaris, and RHEL4, and this caused a failure in the test suite. The problem was that, on platforms where the default disposition for SIGPIPE is ignore instead of terminate, M4 sometimes saw fwrite fail with errno=EPIPE and then reported it. However, there's some sort of race condition, because the new test group occasionally succeeded. Reported by Albert Chin at <http://lists.gnu.org/archive/html/bug-bison/2010-02/msg00004.html>. There were also problems with the test suite livelocking on Tru64 5.1b. Reported by Didier Godefroy at <http://lists.gnu.org/archive/html/bug-bison/2009-05/msg00005.html>. Switching to create_pipe_bidi suggested by Akim Demaille. To attempt to solve both of these problems, switch to gnulib's create_pipe_bidi and register M4 process as a slave. Along the way, clean up file name conflict handling, which was affected by the broken-pipe problem before the switch. * NEWS (2.4.2): Document. * THANKS (Didier Godefroy): Add. * bootstrap.conf (gnulib_modules): Add pipe. * gnulib: Update to latest to make sure we have all the latest fixes. * lib/local.mk (lib_libbison_a_SOURCES): Remove subpipe.h and subpipe.c. * po/POTFILES.in (lib/subpipe.c): Remove. * src/files.c (compute_output_file_names): Update invocations of output_file_name_check. (output_file_name_check): In the case that the grammar file would be overwritten, use complain instead of fatal, but replace the output file name with /dev/null. Use the /dev/null solution for the case of two conflicting output files as well because it seems safer in case Bison one day tries to open both files at the same time. * src/files.h (output_file_name_check): Update prototype. * src/output.c (output_skeleton): Use create_pipe_bidi and wait_subprocess. Assert that scan_skel completely drains the pipe. * src/scan-skel.l (at_directive_perform): Update output_file_name_check invocation. * tests/output.at (AT_CHECK_CONFLICTING_OUTPUT): Check that the grammar file actually isn't overwritten. (Conflicting output files: -o foo.y): Update expected output. * tests/skeletons.at (Fatal errors but M4 continues producing output): New test group. (cherry picked from commit 22cc8d813ee57c9631e527a31010ab138f9b7e06) Conflicts: NEWS bootstrap.conf lib/.cvsignore lib/.gitignore lib/Makefile.am m4/.cvsignore m4/.gitignore src/output.c
* Thank the developer of the initial push parser implementation.Joel E. Denny2010-01-151-0/+1
| | | | | This unfortunate oversight is several years old. * THANKS (Odd Arild Olsen): Add.
* Document gcc -Wundef fix.Joel E. Denny2009-12-161-0/+1
| | | | | * NEWS (2.4.2): Here. * THANKS (Jonathan Nieder): Add.
* tests: skip tests of file names that platform does not support.Joel E. Denny2009-10-041-0/+1
| | | | | | | | | | | | | Reported by Michael Raskin at <http://lists.gnu.org/archive/html/bug-bison/2009-09/msg00001.html>. * THANKS (Michael Raskin): Add. * tests/output.at (AT_CHECK_OUTPUT_FILE_NAME): Fix. Cygwin used to fail at least for file names containing ":" or "\". (cherry picked from commit 2ceb8c617cac934b45f101ab44508d72239c894b) Conflicts: THANKS
* 2009-08-19 Akim Demaille <demaille@gostai.com>Akim Demaille2009-08-191-0/+1
| | | | | | | | doc: %initial-action to initialize yylloc. Reported by Bill Allombert. * doc/bison.texinfo: Set fill-column to 76. (Location Type): Document the use of %initial-action to initialize yylloc.
* build: lower gettext requirements.Akim Demaille2009-08-171-0/+1
| | | | | | | | | | | | | | | Bison was uselessly requiring the formatstring macros from gettext, which resulted in mo files not being installed on systems that perfectly supported Bison mo files. Lower the requirement. http://lists.gnu.org/archive/html/bug-bison/2009-08/msg00006.html * configure.ac: Require need-ngettext instead of need-formatstring-macros. Reported by Martin Jabocs. Suggested by Bruno Haible. * INSTALL: Restructure. (Internationalization): New. (cherry picked from commit b9e42bb439643b6b193ba44696c370bbb35d2ec0)
* doc: update README-hacking.Akim Demaille2009-03-271-0/+1
| | | | | * README-hacking: We now use git and git submodules. Reported by Ralf Wildenhues and Alexandre Duret-Lutz.
* Fix grep portability issues.Akim Demaille2009-01-281-1/+2
| | | | | | | | | | | | | Grep on Solaris does not support -q. Reported by Summum Bonum. * NEWS: Add a stub for 2.4.2. * THANKS: Add Summum Bonum. * tests/atlocal.in (EGREP): New. (CC, CXX, XSLTPROC): Make it possible to override them via envvars. * tests/java.at: Use $EGREP instead of egrep. Use AT_CHECK's ignore instead of grep's -q.
* Fix unexpanded macros in GLR defines file.Joel E. Denny2008-11-191-0/+1
| | | | | | | | | | | | | | | | | | Reported by Csaba Raduly at <http://lists.gnu.org/archive/html/bug-bison/2008-11/msg00048.html>. * THANKS (Csaba Raduly): Add. * data/glr.c: Fix overquoting on b4_prefix for yylval and yylloc. * tests/calc.at (_AT_DATA_CALC_Y): If %defines is specified, generate lexer in a separate module that includes the defines file. (AT_CHECK_CALC): From AT_FULL_COMPILE, request compilation of lexer source. * tests/local.at (_AT_BISON_OPTION_PUSHDEFS): Push AT_DEFINES_IF. Adjust AT_LOC and AT_VAL to use AT_NAME_PREFIX. (AT_BISON_OPTION_POPDEFS): Pop AT_DEFINES_IF. (AT_DATA_SOURCE_PROLOGUE): New. (AT_DATA_GRAMMAR_PROLOGUE): Use AT_DATA_SOURCE_PROLOGUE. (AT_DATA_SOURCE): New. (AT_FULL_COMPILE): Extend to support an additional source file.
* Fix user actions without a trailing semicolon.Joel E. Denny2008-11-041-0/+1
| | | | | | | | | Reported by Sergei Steshenko at <http://lists.gnu.org/archive/html/bug-bison/2008-11/msg00001.html>. * THANKS (Sergei Steshenko): Add. * src/scan-code.l (SC_RULE_ACTION): Fix it. * tests/regression.at (Fix user actions without a trailing semicolon): New test case.
* Use variants to support objects as semantic values.Akim Demaille2008-11-031-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | This patch was inspired by work by Michiel De Wilde. But he used Boost variants which (i) requires Boost on the user side, (ii) is slow, and (iii) has useless overhead (the parser knows the type of the semantic value there is no reason to duplicate this information as Boost.Variants do). This implementation reserves a buffer large enough to store the largest objects. yy::variant implements this buffer. It was implemented with Quentin Hocquet. * src/output.c (type_names_output): New. (output_skeleton): Invoke it. * data/c++.m4 (b4_variant_if): New. (b4_symbol_value): If needed, provide a definition for variants. * data/lalr1.cc (b4_symbol_value, b4_symbol_action_) (b4_symbol_variant, _b4_char_sizeof_counter, _b4_char_sizeof_dummy) (b4_char_sizeof, yy::variant): New. (parser::parse): If variants are requested, define parser::union_type, parser::variant, change the definition of semantic_type, construct $$ before running the user action instead of performing a default $$ = $1. * examples/variant.yy: New. Based on an example by Michiel De Wilde.
* Fix yyerror_range for user-defined location type in C++.Joel E. Denny2008-10-181-0/+1
| | | | | | | Reported by Georg Sauthoff at <http://lists.gnu.org/archive/html/bug-bison/2008-08/msg00008.html>. * data/lalr1.cc (parse): Change type of yyerror_range to location_type. * THANKS (Georg Sauthoff): Add.
* small but important bugfixes for the Java skeletonPaolo Bonzini2008-10-091-0/+1
| | | | | | | | 2008-10-08 Di-an Jan <dianj@freeshell.org> (tiny change) Small but important bugfixes for the Java skeleton. * data/lalr1.java (yyerror): Change Location to b4_location_type. (yy_symbol_print): Call toString on yyvaluep.
* Fix untranslatable composition of sentences.Joel E. Denny2008-07-161-0/+1
| | | | | | | | | | | | Reported by Goran Uddeborg at <http://lists.gnu.org/archive/html/bug-bison/2008-06/msg00000.html>. * THANKS (Goran Uddeborg): Add. * src/reduce.c (reduce_print): Report the number of nonterminals and rules useless in the grammar in separate sentences. * tests/reduce.at (Useless Rules): Update output. (Reduced Automaton): Likewise. (Underivable Rules): Likewise. (Empty Language): Likewise.
* * THANKS: Add Eric Blake.Joel E. Denny2008-05-071-0/+1
|
* * THANKS: Update my email address.Juan Manuel Guerrero2008-02-061-1/+1
|
* * data/yacc.c (yyexhaustedlab): Define it when YYERROR_VERBOSE isJoel E. Denny2007-08-031-0/+1
| | | | | | | true since it's then always used regardless of whether yyoverflow is defined. Reported by Christian Burger at <http://lists.gnu.org/archive/html/bug-bison/2007-07/msg00031.html>. * THANKS: Add Christian Burger.
* Fix push parsing memory leak reported by Brandon Lucia atJoel E. Denny2007-07-281-0/+1
| | | | | | | | | | | <http://lists.gnu.org/archive/html/bug-bison/2007-07/msg00032.html>. * THANKS: Add Brandon Lucia. * data/push.c (yypstate_delete): Free the stack if it was reallocated but the parse never completed and thus freed it. * tests/Makefile.am (TESTSUITE_AT): Add push.at. * tests/testsuite.at: Include push.at. * test/push.at: New. (Push Parsing: Memory Leak for Early Deletion): New test case.
* * data/glr.c (yylval): As in yacc.c, don't extern in the header forJoel E. Denny2007-05-261-0/+1
| | | | | | the case of pure parsers. Reported by Frans Englich at <http://lists.gnu.org/archive/html/help-bison/2007-05/msg00018.html>. * THANKS: Add Frans Englich.
* Use ASCII for Sebastien Fricker's name.Paul Eggert2007-04-041-1/+1
|
* * doc/bison.texinfo (Destructor Decl): Fix typo reported by SebastianJoel E. Denny2007-03-101-0/+1
| | | | | | Setzer. (Java Differences): Fix some typos. * THANKS: Add Sebastian Setzer.
* Use YYFPRINTF instead of fprintf where appropriate. Reported byJoel E. Denny2007-02-241-0/+1
| | | | | | | | | Sébastien Fricker at <http://lists.gnu.org/archive/html/bug-bison/2007-02/msg00035.html>. * THANKS: Add Sébastien Fricker. * data/glr.c, data/push.c, data/yacc.c (yy_reduce_print): Implement. * doc/bison.texinfo (Tracing): Make it clearer that YYFPRINTF must accept a variable number of arguments.
* Credit Satya for the graphviz change.Paul Eggert2006-10-121-0/+1
|
* * THANKS: Add Paolo Bonzini and Bob Rossi.Paul Eggert2006-10-091-4/+6
|
* Add name for twlevo.Paul Eggert2006-06-151-1/+1
|
* * data/glr.c (yyreportTree): Make room in yystates for the stateJoel E. Denny2006-05-171-2/+3
| | | | | | | | | | | | preceding the RHS. This fixes the segmentation fault reported by Derek M. Jones in <http://lists.gnu.org/archive/html/help-bison/2006-05/msg00035.html>. (yyreportTree, yypdumpstack): Subtract 1 from yyrule before printing to the user. Reported for yyreportTree by Derek M. Jones later in the same thread. * THANKS: Add Derek M. Jones. Update my email address. Fix typo in Steve Murphy's name.
* * doc/bison.texinfo (C++ Bison Interface): Clarify the namingAkim Demaille2006-05-141-0/+1
| | | | | scheme. Reported by Steve Murphy.
* * examples/extexi: Enforce the precedence of concatenation overAkim Demaille2006-05-111-0/+1
| | | | | >>. Reported by tommy.nordgren@chello.se
* Complete ChangeLog.Akim Demaille2006-05-111-0/+1
|
* * src/scan-gram.l: Be robust to BRACED_CODE appearing before anyAkim Demaille2006-04-031-0/+1
| | | | | | rule. Reported by Mickael Labau. * tests/input.at (Torturing the Scanner): Test it.
* * src/scan-skel.l: Output the base name parts of the parser andAkim Demaille2005-10-131-0/+1
| | | | | | | | header file names. * tests/output.at (AT_CHECK_OUTPUT): Support subdirectorioes, and additional checks. Use this to exercise C++ outputs in subdirs. Reported by Oleg Smolsky.
* * data/glr.c (yyresolveValue): Fix redundant parse tree problemPaul Eggert2005-08-211-0/+1
| | | | | | | | | | reported by Joel E. Denny in <http://lists.gnu.org/archive/html/bison-patches/2005-08/msg00004.html> (trivial change). * tests/glr-regression.at (Duplicate representation of merged trees): New test, from Joel E. Denny in: <http://lists.gnu.org/archive/html/help-bison/2005-07/msg00013.html>. * THANKS: Add Joel E. Denny.
* Add Anthony Heading, twlevo@xs4all.nl.Paul Eggert2005-07-221-0/+2
|
* Add Alexandre Duret-Lutz, Baron Schwartz, Frank Heckenbach, GuidoPaul Eggert2004-12-111-1/+8
| | | | | Trentalancia, Peter Fales, Troy A. Johnson, Vin Shelton. Change Paul Eggert's email address.
* * doc/bison.texinfo (How Can I Reset the Parser): More about startAkim Demaille2003-12-021-0/+1
| | | | | conditions. From Bruno Haible.
* Write a test the yycheck overrun reported by Andrew Suffield.Akim Demaille2003-03-021-0/+1
| | | | | | * tests/regression.at (_AT_DATA_DANCER_Y, AT_CHECK_DANCER): New. Use them to exercise yycheck overrun. Based on Andrew Suffield's grammar.
* Stick to ASCII for now.Paul Eggert2003-02-241-1/+1
|
* * doc/bison.texinfo (Tracing): `yyprint' shouldn't prepend aAkim Demaille2002-11-181-0/+1
| | | | | space. From Tim Van Holder.
* Typo.Akim Demaille2002-11-061-1/+1
|
* Restore --no-lines.Akim Demaille2002-11-061-0/+1
| | | | | | | | | Reported by Jim Kent. * data/c.m4 (b4_syncline): New. * data/glr.c, data/yacc.c, data/lalr1.cc: Use it. * src/reader.c (prologue_augment, epilogue_set): Use b4_syncline. * src/output.c (user_actions_output): Likewise. (prepare): Define 'b4_synclines_flag'.
* * data/yacc.c (m4_int_type): New.Akim Demaille2002-10-241-0/+1
| | | | | | | | * data/c.m4 (m4_int_type): Don't use yysigned_char, but `signed char' as only yacc.c wants K&R portability. * data/glr.c (yysigned_char): Remove. * data/lalr1.cc: Rename the trailing b4_name as b4_parser_class_name. Reported by Quoc Peyrot.
* * src/system.h: Include sys/types.Akim Demaille2002-10-231-0/+1
| | | | Reported by Bert Deknuydt.