Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Jul 2020 01:54:24 +0000 (UTC)
From:      Jung-uk Kim <jkim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r363170 - in head: contrib/byacc contrib/byacc/package contrib/byacc/package/debian contrib/byacc/package/pkgsrc contrib/byacc/test contrib/byacc/test/btyacc contrib/byacc/test/yacc usr...
Message-ID:  <202007140154.06E1sOjN003426@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jkim
Date: Tue Jul 14 01:54:24 2020
New Revision: 363170
URL: https://svnweb.freebsd.org/changeset/base/363170

Log:
  MFV:	r362513
  
  Update byacc to 20200330.

Added:
  head/contrib/byacc/test/btyacc/calc_code_all.error
     - copied unchanged from r362513, vendor/byacc/dist/test/btyacc/calc_code_all.error
  head/contrib/byacc/test/btyacc/calc_code_all.output
     - copied unchanged from r362513, vendor/byacc/dist/test/btyacc/calc_code_all.output
  head/contrib/byacc/test/btyacc/calc_code_all.tab.c
     - copied, changed from r362513, vendor/byacc/dist/test/btyacc/calc_code_all.tab.c
  head/contrib/byacc/test/btyacc/calc_code_all.tab.h
     - copied unchanged from r362513, vendor/byacc/dist/test/btyacc/calc_code_all.tab.h
  head/contrib/byacc/test/btyacc/calc_code_default.error
     - copied unchanged from r362513, vendor/byacc/dist/test/btyacc/calc_code_default.error
  head/contrib/byacc/test/btyacc/calc_code_default.output
     - copied unchanged from r362513, vendor/byacc/dist/test/btyacc/calc_code_default.output
  head/contrib/byacc/test/btyacc/calc_code_default.tab.c
     - copied, changed from r362513, vendor/byacc/dist/test/btyacc/calc_code_default.tab.c
  head/contrib/byacc/test/btyacc/calc_code_default.tab.h
     - copied unchanged from r362513, vendor/byacc/dist/test/btyacc/calc_code_default.tab.h
  head/contrib/byacc/test/btyacc/calc_code_imports.error
     - copied unchanged from r362513, vendor/byacc/dist/test/btyacc/calc_code_imports.error
  head/contrib/byacc/test/btyacc/calc_code_imports.output
     - copied unchanged from r362513, vendor/byacc/dist/test/btyacc/calc_code_imports.output
  head/contrib/byacc/test/btyacc/calc_code_imports.tab.c
     - copied, changed from r362513, vendor/byacc/dist/test/btyacc/calc_code_imports.tab.c
  head/contrib/byacc/test/btyacc/calc_code_imports.tab.h
     - copied unchanged from r362513, vendor/byacc/dist/test/btyacc/calc_code_imports.tab.h
  head/contrib/byacc/test/btyacc/calc_code_provides.error
     - copied unchanged from r362513, vendor/byacc/dist/test/btyacc/calc_code_provides.error
  head/contrib/byacc/test/btyacc/calc_code_provides.output
     - copied unchanged from r362513, vendor/byacc/dist/test/btyacc/calc_code_provides.output
  head/contrib/byacc/test/btyacc/calc_code_provides.tab.c
     - copied, changed from r362513, vendor/byacc/dist/test/btyacc/calc_code_provides.tab.c
  head/contrib/byacc/test/btyacc/calc_code_provides.tab.h
     - copied unchanged from r362513, vendor/byacc/dist/test/btyacc/calc_code_provides.tab.h
  head/contrib/byacc/test/btyacc/calc_code_requires.error
     - copied unchanged from r362513, vendor/byacc/dist/test/btyacc/calc_code_requires.error
  head/contrib/byacc/test/btyacc/calc_code_requires.output
     - copied unchanged from r362513, vendor/byacc/dist/test/btyacc/calc_code_requires.output
  head/contrib/byacc/test/btyacc/calc_code_requires.tab.c
     - copied, changed from r362513, vendor/byacc/dist/test/btyacc/calc_code_requires.tab.c
  head/contrib/byacc/test/btyacc/calc_code_requires.tab.h
     - copied unchanged from r362513, vendor/byacc/dist/test/btyacc/calc_code_requires.tab.h
  head/contrib/byacc/test/btyacc/calc_code_top.error
     - copied unchanged from r362513, vendor/byacc/dist/test/btyacc/calc_code_top.error
  head/contrib/byacc/test/btyacc/calc_code_top.output
     - copied unchanged from r362513, vendor/byacc/dist/test/btyacc/calc_code_top.output
  head/contrib/byacc/test/btyacc/calc_code_top.tab.c
     - copied, changed from r362513, vendor/byacc/dist/test/btyacc/calc_code_top.tab.c
  head/contrib/byacc/test/btyacc/calc_code_top.tab.h
     - copied unchanged from r362513, vendor/byacc/dist/test/btyacc/calc_code_top.tab.h
  head/contrib/byacc/test/btyacc/defines1.calc.c
     - copied, changed from r362513, vendor/byacc/dist/test/btyacc/defines1.calc.c
  head/contrib/byacc/test/btyacc/defines1.calc.h
     - copied unchanged from r362513, vendor/byacc/dist/test/btyacc/defines1.calc.h
  head/contrib/byacc/test/btyacc/defines1.error
     - copied unchanged from r362513, vendor/byacc/dist/test/btyacc/defines1.error
  head/contrib/byacc/test/btyacc/defines1.output
     - copied unchanged from r362513, vendor/byacc/dist/test/btyacc/defines1.output
  head/contrib/byacc/test/btyacc/defines2.calc.c
     - copied, changed from r362513, vendor/byacc/dist/test/btyacc/defines2.calc.c
  head/contrib/byacc/test/btyacc/defines2.calc.h
     - copied unchanged from r362513, vendor/byacc/dist/test/btyacc/defines2.calc.h
  head/contrib/byacc/test/btyacc/defines2.error
     - copied unchanged from r362513, vendor/byacc/dist/test/btyacc/defines2.error
  head/contrib/byacc/test/btyacc/defines2.output
     - copied unchanged from r362513, vendor/byacc/dist/test/btyacc/defines2.output
  head/contrib/byacc/test/btyacc/defines3.calc.c
     - copied, changed from r362513, vendor/byacc/dist/test/btyacc/defines3.calc.c
  head/contrib/byacc/test/btyacc/defines3.calc.h
     - copied unchanged from r362513, vendor/byacc/dist/test/btyacc/defines3.calc.h
  head/contrib/byacc/test/btyacc/defines3.error
     - copied unchanged from r362513, vendor/byacc/dist/test/btyacc/defines3.error
  head/contrib/byacc/test/btyacc/defines3.output
     - copied unchanged from r362513, vendor/byacc/dist/test/btyacc/defines3.output
  head/contrib/byacc/test/btyacc/stdin1.calc.c
     - copied, changed from r362513, vendor/byacc/dist/test/btyacc/stdin1.calc.c
  head/contrib/byacc/test/btyacc/stdin1.error
     - copied unchanged from r362513, vendor/byacc/dist/test/btyacc/stdin1.error
  head/contrib/byacc/test/btyacc/stdin1.output
     - copied unchanged from r362513, vendor/byacc/dist/test/btyacc/stdin1.output
  head/contrib/byacc/test/btyacc/stdin2.calc.c
     - copied, changed from r362513, vendor/byacc/dist/test/btyacc/stdin2.calc.c
  head/contrib/byacc/test/btyacc/stdin2.error
     - copied unchanged from r362513, vendor/byacc/dist/test/btyacc/stdin2.error
  head/contrib/byacc/test/btyacc/stdin2.output
     - copied unchanged from r362513, vendor/byacc/dist/test/btyacc/stdin2.output
  head/contrib/byacc/test/calc.tab.c
     - copied unchanged from r362513, vendor/byacc/dist/test/calc.tab.c
  head/contrib/byacc/test/calc_code_all.y
     - copied unchanged from r362513, vendor/byacc/dist/test/calc_code_all.y
  head/contrib/byacc/test/calc_code_default.y
     - copied unchanged from r362513, vendor/byacc/dist/test/calc_code_default.y
  head/contrib/byacc/test/calc_code_imports.y
     - copied unchanged from r362513, vendor/byacc/dist/test/calc_code_imports.y
  head/contrib/byacc/test/calc_code_provides.y
     - copied unchanged from r362513, vendor/byacc/dist/test/calc_code_provides.y
  head/contrib/byacc/test/calc_code_requires.y
     - copied unchanged from r362513, vendor/byacc/dist/test/calc_code_requires.y
  head/contrib/byacc/test/calc_code_top.y
     - copied unchanged from r362513, vendor/byacc/dist/test/calc_code_top.y
  head/contrib/byacc/test/yacc/calc_code_all.error
     - copied unchanged from r362513, vendor/byacc/dist/test/yacc/calc_code_all.error
  head/contrib/byacc/test/yacc/calc_code_all.output
     - copied unchanged from r362513, vendor/byacc/dist/test/yacc/calc_code_all.output
  head/contrib/byacc/test/yacc/calc_code_all.tab.c
     - copied, changed from r362513, vendor/byacc/dist/test/yacc/calc_code_all.tab.c
  head/contrib/byacc/test/yacc/calc_code_all.tab.h
     - copied unchanged from r362513, vendor/byacc/dist/test/yacc/calc_code_all.tab.h
  head/contrib/byacc/test/yacc/calc_code_default.error
     - copied unchanged from r362513, vendor/byacc/dist/test/yacc/calc_code_default.error
  head/contrib/byacc/test/yacc/calc_code_default.output
     - copied unchanged from r362513, vendor/byacc/dist/test/yacc/calc_code_default.output
  head/contrib/byacc/test/yacc/calc_code_default.tab.c
     - copied, changed from r362513, vendor/byacc/dist/test/yacc/calc_code_default.tab.c
  head/contrib/byacc/test/yacc/calc_code_default.tab.h
     - copied unchanged from r362513, vendor/byacc/dist/test/yacc/calc_code_default.tab.h
  head/contrib/byacc/test/yacc/calc_code_imports.error
     - copied unchanged from r362513, vendor/byacc/dist/test/yacc/calc_code_imports.error
  head/contrib/byacc/test/yacc/calc_code_imports.output
     - copied unchanged from r362513, vendor/byacc/dist/test/yacc/calc_code_imports.output
  head/contrib/byacc/test/yacc/calc_code_imports.tab.c
     - copied, changed from r362513, vendor/byacc/dist/test/yacc/calc_code_imports.tab.c
  head/contrib/byacc/test/yacc/calc_code_imports.tab.h
     - copied unchanged from r362513, vendor/byacc/dist/test/yacc/calc_code_imports.tab.h
  head/contrib/byacc/test/yacc/calc_code_provides.error
     - copied unchanged from r362513, vendor/byacc/dist/test/yacc/calc_code_provides.error
  head/contrib/byacc/test/yacc/calc_code_provides.output
     - copied unchanged from r362513, vendor/byacc/dist/test/yacc/calc_code_provides.output
  head/contrib/byacc/test/yacc/calc_code_provides.tab.c
     - copied, changed from r362513, vendor/byacc/dist/test/yacc/calc_code_provides.tab.c
  head/contrib/byacc/test/yacc/calc_code_provides.tab.h
     - copied unchanged from r362513, vendor/byacc/dist/test/yacc/calc_code_provides.tab.h
  head/contrib/byacc/test/yacc/calc_code_requires.error
     - copied unchanged from r362513, vendor/byacc/dist/test/yacc/calc_code_requires.error
  head/contrib/byacc/test/yacc/calc_code_requires.output
     - copied unchanged from r362513, vendor/byacc/dist/test/yacc/calc_code_requires.output
  head/contrib/byacc/test/yacc/calc_code_requires.tab.c
     - copied, changed from r362513, vendor/byacc/dist/test/yacc/calc_code_requires.tab.c
  head/contrib/byacc/test/yacc/calc_code_requires.tab.h
     - copied unchanged from r362513, vendor/byacc/dist/test/yacc/calc_code_requires.tab.h
  head/contrib/byacc/test/yacc/calc_code_top.error
     - copied unchanged from r362513, vendor/byacc/dist/test/yacc/calc_code_top.error
  head/contrib/byacc/test/yacc/calc_code_top.output
     - copied unchanged from r362513, vendor/byacc/dist/test/yacc/calc_code_top.output
  head/contrib/byacc/test/yacc/calc_code_top.tab.c
     - copied, changed from r362513, vendor/byacc/dist/test/yacc/calc_code_top.tab.c
  head/contrib/byacc/test/yacc/calc_code_top.tab.h
     - copied unchanged from r362513, vendor/byacc/dist/test/yacc/calc_code_top.tab.h
  head/contrib/byacc/test/yacc/defines1.calc.c
     - copied, changed from r362513, vendor/byacc/dist/test/yacc/defines1.calc.c
  head/contrib/byacc/test/yacc/defines1.calc.h
     - copied unchanged from r362513, vendor/byacc/dist/test/yacc/defines1.calc.h
  head/contrib/byacc/test/yacc/defines1.error
     - copied unchanged from r362513, vendor/byacc/dist/test/yacc/defines1.error
  head/contrib/byacc/test/yacc/defines1.output
     - copied unchanged from r362513, vendor/byacc/dist/test/yacc/defines1.output
  head/contrib/byacc/test/yacc/defines2.calc.c
     - copied, changed from r362513, vendor/byacc/dist/test/yacc/defines2.calc.c
  head/contrib/byacc/test/yacc/defines2.calc.h
     - copied unchanged from r362513, vendor/byacc/dist/test/yacc/defines2.calc.h
  head/contrib/byacc/test/yacc/defines2.error
     - copied unchanged from r362513, vendor/byacc/dist/test/yacc/defines2.error
  head/contrib/byacc/test/yacc/defines2.output
     - copied unchanged from r362513, vendor/byacc/dist/test/yacc/defines2.output
  head/contrib/byacc/test/yacc/defines3.calc.c
     - copied, changed from r362513, vendor/byacc/dist/test/yacc/defines3.calc.c
  head/contrib/byacc/test/yacc/defines3.calc.h
     - copied unchanged from r362513, vendor/byacc/dist/test/yacc/defines3.calc.h
  head/contrib/byacc/test/yacc/defines3.error
     - copied unchanged from r362513, vendor/byacc/dist/test/yacc/defines3.error
  head/contrib/byacc/test/yacc/defines3.output
     - copied unchanged from r362513, vendor/byacc/dist/test/yacc/defines3.output
  head/contrib/byacc/test/yacc/stdin1.calc.c
     - copied, changed from r362513, vendor/byacc/dist/test/yacc/stdin1.calc.c
  head/contrib/byacc/test/yacc/stdin1.error
     - copied unchanged from r362513, vendor/byacc/dist/test/yacc/stdin1.error
  head/contrib/byacc/test/yacc/stdin1.output
     - copied unchanged from r362513, vendor/byacc/dist/test/yacc/stdin1.output
  head/contrib/byacc/test/yacc/stdin2.calc.c
     - copied, changed from r362513, vendor/byacc/dist/test/yacc/stdin2.calc.c
  head/contrib/byacc/test/yacc/stdin2.error
     - copied unchanged from r362513, vendor/byacc/dist/test/yacc/stdin2.error
  head/contrib/byacc/test/yacc/stdin2.output
     - copied unchanged from r362513, vendor/byacc/dist/test/yacc/stdin2.output
  head/usr.bin/yacc/config.h   (contents, props changed)
Deleted:
  head/contrib/byacc/test/btyacc/btyacc_demo2.error
  head/contrib/byacc/test/btyacc/btyacc_demo2.output
  head/contrib/byacc/test/btyacc/btyacc_demo2.tab.c
  head/contrib/byacc/test/btyacc/btyacc_demo2.tab.h
  head/contrib/byacc/test/btyacc/code_debug.c
  head/contrib/byacc/test/btyacc/code_debug.error
  head/contrib/byacc/test/btyacc/code_debug.h
  head/contrib/byacc/test/btyacc/code_debug.i
  head/contrib/byacc/test/btyacc/code_debug.output
Modified:
  head/contrib/byacc/CHANGES
  head/contrib/byacc/MANIFEST
  head/contrib/byacc/VERSION
  head/contrib/byacc/aclocal.m4
  head/contrib/byacc/btyaccpar.c
  head/contrib/byacc/btyaccpar.skel
  head/contrib/byacc/config.guess
  head/contrib/byacc/config.sub
  head/contrib/byacc/config_h.in
  head/contrib/byacc/configure
  head/contrib/byacc/configure.in
  head/contrib/byacc/defs.h
  head/contrib/byacc/main.c
  head/contrib/byacc/mkpar.c
  head/contrib/byacc/mstring.c
  head/contrib/byacc/output.c
  head/contrib/byacc/package/byacc.spec
  head/contrib/byacc/package/debian/changelog
  head/contrib/byacc/package/debian/control
  head/contrib/byacc/package/debian/copyright
  head/contrib/byacc/package/debian/rules
  head/contrib/byacc/package/debian/watch
  head/contrib/byacc/package/mingw-byacc.spec
  head/contrib/byacc/package/pkgsrc/Makefile
  head/contrib/byacc/reader.c
  head/contrib/byacc/test/btyacc/big_b.error
  head/contrib/byacc/test/btyacc/big_b.output
  head/contrib/byacc/test/btyacc/big_l.error
  head/contrib/byacc/test/btyacc/big_l.output
  head/contrib/byacc/test/btyacc/btyacc_calc1.tab.c
  head/contrib/byacc/test/btyacc/btyacc_calc1.tab.h
  head/contrib/byacc/test/btyacc/btyacc_demo.tab.c
  head/contrib/byacc/test/btyacc/btyacc_demo.tab.h
  head/contrib/byacc/test/btyacc/btyacc_destroy1.tab.c
  head/contrib/byacc/test/btyacc/btyacc_destroy2.tab.c
  head/contrib/byacc/test/btyacc/btyacc_destroy3.tab.c
  head/contrib/byacc/test/btyacc/calc.tab.c
  head/contrib/byacc/test/btyacc/calc1.tab.c
  head/contrib/byacc/test/btyacc/calc2.tab.c
  head/contrib/byacc/test/btyacc/calc3.tab.c
  head/contrib/byacc/test/btyacc/code_calc.code.c
  head/contrib/byacc/test/btyacc/code_calc.tab.c
  head/contrib/byacc/test/btyacc/code_error.code.c
  head/contrib/byacc/test/btyacc/code_error.tab.c
  head/contrib/byacc/test/btyacc/empty.tab.c
  head/contrib/byacc/test/btyacc/err_inherit3.tab.c
  head/contrib/byacc/test/btyacc/err_inherit4.tab.c
  head/contrib/byacc/test/btyacc/err_inherit4.tab.h
  head/contrib/byacc/test/btyacc/err_syntax10.tab.c
  head/contrib/byacc/test/btyacc/err_syntax11.tab.c
  head/contrib/byacc/test/btyacc/err_syntax12.tab.c
  head/contrib/byacc/test/btyacc/err_syntax18.tab.c
  head/contrib/byacc/test/btyacc/err_syntax20.tab.c
  head/contrib/byacc/test/btyacc/error.tab.c
  head/contrib/byacc/test/btyacc/expr.oxout.tab.c
  head/contrib/byacc/test/btyacc/grammar.tab.c
  head/contrib/byacc/test/btyacc/help.error
  head/contrib/byacc/test/btyacc/help.output
  head/contrib/byacc/test/btyacc/inherit0.tab.c
  head/contrib/byacc/test/btyacc/inherit1.tab.c
  head/contrib/byacc/test/btyacc/inherit2.tab.c
  head/contrib/byacc/test/btyacc/no_b_opt.error
  head/contrib/byacc/test/btyacc/no_b_opt.output
  head/contrib/byacc/test/btyacc/no_b_opt1.error
  head/contrib/byacc/test/btyacc/no_b_opt1.output
  head/contrib/byacc/test/btyacc/no_code_c.error
  head/contrib/byacc/test/btyacc/no_code_c.output
  head/contrib/byacc/test/btyacc/no_defines.error
  head/contrib/byacc/test/btyacc/no_defines.output
  head/contrib/byacc/test/btyacc/no_graph.error
  head/contrib/byacc/test/btyacc/no_graph.output
  head/contrib/byacc/test/btyacc/no_include.error
  head/contrib/byacc/test/btyacc/no_include.output
  head/contrib/byacc/test/btyacc/no_opts.error
  head/contrib/byacc/test/btyacc/no_opts.output
  head/contrib/byacc/test/btyacc/no_output.error
  head/contrib/byacc/test/btyacc/no_output.output
  head/contrib/byacc/test/btyacc/no_output1.error
  head/contrib/byacc/test/btyacc/no_output1.output
  head/contrib/byacc/test/btyacc/no_output2.error
  head/contrib/byacc/test/btyacc/no_output2.output
  head/contrib/byacc/test/btyacc/no_p_opt.error
  head/contrib/byacc/test/btyacc/no_p_opt.output
  head/contrib/byacc/test/btyacc/no_p_opt1.error
  head/contrib/byacc/test/btyacc/no_p_opt1.output
  head/contrib/byacc/test/btyacc/no_verbose.error
  head/contrib/byacc/test/btyacc/no_verbose.output
  head/contrib/byacc/test/btyacc/nostdin.error
  head/contrib/byacc/test/btyacc/nostdin.output
  head/contrib/byacc/test/btyacc/ok_syntax1.tab.c
  head/contrib/byacc/test/btyacc/ok_syntax1.tab.h
  head/contrib/byacc/test/btyacc/pure_calc.tab.c
  head/contrib/byacc/test/btyacc/pure_error.tab.c
  head/contrib/byacc/test/btyacc/quote_calc-s.tab.c
  head/contrib/byacc/test/btyacc/quote_calc.tab.c
  head/contrib/byacc/test/btyacc/quote_calc2-s.tab.c
  head/contrib/byacc/test/btyacc/quote_calc2.tab.c
  head/contrib/byacc/test/btyacc/quote_calc3-s.tab.c
  head/contrib/byacc/test/btyacc/quote_calc3.tab.c
  head/contrib/byacc/test/btyacc/quote_calc4-s.tab.c
  head/contrib/byacc/test/btyacc/quote_calc4.tab.c
  head/contrib/byacc/test/btyacc/rename_debug.c
  head/contrib/byacc/test/btyacc/rename_debug.i
  head/contrib/byacc/test/btyacc/varsyntax_calc1.tab.c
  head/contrib/byacc/test/grammar.y
  head/contrib/byacc/test/run_make.sh
  head/contrib/byacc/test/run_test.sh
  head/contrib/byacc/test/yacc/big_b.error
  head/contrib/byacc/test/yacc/big_b.output
  head/contrib/byacc/test/yacc/big_l.error
  head/contrib/byacc/test/yacc/big_l.output
  head/contrib/byacc/test/yacc/calc.tab.c
  head/contrib/byacc/test/yacc/calc1.tab.c
  head/contrib/byacc/test/yacc/calc2.tab.c
  head/contrib/byacc/test/yacc/calc3.tab.c
  head/contrib/byacc/test/yacc/code_calc.code.c
  head/contrib/byacc/test/yacc/code_error.code.c
  head/contrib/byacc/test/yacc/empty.tab.c
  head/contrib/byacc/test/yacc/err_syntax10.tab.c
  head/contrib/byacc/test/yacc/err_syntax11.tab.c
  head/contrib/byacc/test/yacc/err_syntax12.tab.c
  head/contrib/byacc/test/yacc/err_syntax18.tab.c
  head/contrib/byacc/test/yacc/err_syntax20.tab.c
  head/contrib/byacc/test/yacc/error.tab.c
  head/contrib/byacc/test/yacc/expr.oxout.tab.c
  head/contrib/byacc/test/yacc/grammar.tab.c
  head/contrib/byacc/test/yacc/help.error
  head/contrib/byacc/test/yacc/help.output
  head/contrib/byacc/test/yacc/no_b_opt.error
  head/contrib/byacc/test/yacc/no_b_opt.output
  head/contrib/byacc/test/yacc/no_b_opt1.error
  head/contrib/byacc/test/yacc/no_b_opt1.output
  head/contrib/byacc/test/yacc/no_code_c.error
  head/contrib/byacc/test/yacc/no_code_c.output
  head/contrib/byacc/test/yacc/no_defines.error
  head/contrib/byacc/test/yacc/no_defines.output
  head/contrib/byacc/test/yacc/no_graph.error
  head/contrib/byacc/test/yacc/no_graph.output
  head/contrib/byacc/test/yacc/no_include.error
  head/contrib/byacc/test/yacc/no_include.output
  head/contrib/byacc/test/yacc/no_opts.error
  head/contrib/byacc/test/yacc/no_opts.output
  head/contrib/byacc/test/yacc/no_output.error
  head/contrib/byacc/test/yacc/no_output.output
  head/contrib/byacc/test/yacc/no_output1.error
  head/contrib/byacc/test/yacc/no_output1.output
  head/contrib/byacc/test/yacc/no_output2.error
  head/contrib/byacc/test/yacc/no_output2.output
  head/contrib/byacc/test/yacc/no_p_opt.error
  head/contrib/byacc/test/yacc/no_p_opt.output
  head/contrib/byacc/test/yacc/no_p_opt1.error
  head/contrib/byacc/test/yacc/no_p_opt1.output
  head/contrib/byacc/test/yacc/no_verbose.error
  head/contrib/byacc/test/yacc/no_verbose.output
  head/contrib/byacc/test/yacc/nostdin.error
  head/contrib/byacc/test/yacc/nostdin.output
  head/contrib/byacc/test/yacc/ok_syntax1.tab.c
  head/contrib/byacc/test/yacc/ok_syntax1.tab.h
  head/contrib/byacc/test/yacc/pure_calc.tab.c
  head/contrib/byacc/test/yacc/pure_error.tab.c
  head/contrib/byacc/test/yacc/quote_calc-s.tab.c
  head/contrib/byacc/test/yacc/quote_calc.tab.c
  head/contrib/byacc/test/yacc/quote_calc2-s.tab.c
  head/contrib/byacc/test/yacc/quote_calc2.tab.c
  head/contrib/byacc/test/yacc/quote_calc3-s.tab.c
  head/contrib/byacc/test/yacc/quote_calc3.tab.c
  head/contrib/byacc/test/yacc/quote_calc4-s.tab.c
  head/contrib/byacc/test/yacc/quote_calc4.tab.c
  head/contrib/byacc/test/yacc/rename_debug.c
  head/contrib/byacc/test/yacc/rename_debug.i
  head/contrib/byacc/test/yacc/varsyntax_calc1.tab.c
  head/contrib/byacc/yacc.1
  head/contrib/byacc/yaccpar.c
  head/contrib/byacc/yaccpar.skel
  head/usr.bin/yacc/Makefile
  head/usr.bin/yacc/tests/Makefile
Directory Properties:
  head/contrib/byacc/   (props changed)

Modified: head/contrib/byacc/CHANGES
==============================================================================
--- head/contrib/byacc/CHANGES	Tue Jul 14 00:46:20 2020	(r363169)
+++ head/contrib/byacc/CHANGES	Tue Jul 14 01:54:24 2020	(r363170)
@@ -1,3 +1,423 @@
+2020-03-30  Thomas E. Dickey  <dickey@invisible-island.net>
+
+	* package/debian/copyright: bump
+
+	* test/yacc/grammar.tab.c, test/btyacc/grammar.tab.c, test/grammar.y, reader.c:
+	typo found with codespell
+
+	* yacc.1: fixes noted in the original report, overlooked in followup
+
+2020-03-30  Bjarni.Ingi.Gislason
+
+	* yacc.1: typography/spelling fixes - Debian #955175
+
+2020-03-30  Thomas E. Dickey  <dickey@invisible-island.net>
+
+	* VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile:
+	bump
+
+2020-03-10  Thomas E. Dickey  <dickey@invisible-island.net>
+
+	* configure: regen
+
+	* aclocal.m4:
+	resync with my-autoconf, mostly fixes for compiler-warnings
+
+	* configure.in: use macro to suppress X-dependency from newer macros
+
+2019-12-20  Thomas E. Dickey  <dickey@invisible-island.net>
+
+	* config.guess: 2019-12-21
+
+2019-11-25  Tom.Shields
+
+	* main.c:
+	fix an inconsistency between the getopt and non-getopt configuration.
+	In the former, getopt always used "yacc", not the name of the executable.
+
+2019-11-25  Thomas E. Dickey  <dickey@invisible-island.net>
+
+	* test/run_make.sh:
+	suppress bison's -Wyacc warning, which is not useful.
+
+	* VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile:
+	bump
+
+2019-11-19  Thomas E. Dickey  <dickey@invisible-island.net>
+
+	* yacc.1: new version of manpage
+
+	* VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile:
+	bump
+
+	* yacc.1: document %code
+
+	* test/btyacc/calc_code_all.error, test/btyacc/calc_code_all.output, test/btyacc/calc_code_all.tab.c, test/btyacc/calc_code_all.tab.h, test/btyacc/calc_code_default.error, test/btyacc/calc_code_default.output, test/btyacc/calc_code_default.tab.c, test/btyacc/calc_code_default.tab.h, test/btyacc/calc_code_imports.error, test/btyacc/calc_code_imports.output, test/btyacc/calc_code_imports.tab.c, test/btyacc/calc_code_imports.tab.h, test/btyacc/calc_code_provides.error, test/btyacc/calc_code_provides.output, test/btyacc/calc_code_provides.tab.c, test/btyacc/calc_code_provides.tab.h, test/btyacc/calc_code_requires.error, test/btyacc/calc_code_requires.output, test/btyacc/calc_code_requires.tab.c, test/btyacc/calc_code_requires.tab.h, test/btyacc/calc_code_top.error, test/btyacc/calc_code_top.output, test/btyacc/calc_code_top.tab.c, test/btyacc/calc_code_top.tab.h, test/yacc/calc_code_all.tab.c, test/yacc/calc_code_all.tab.h, test/yacc/calc_code_default.tab.c, test/yacc/calc_code_provide
 s.tab.c, test/yacc/calc_code_provides.tab.h, test/yacc/calc_code_requires.tab.c, test/yacc/calc_code_requires.tab.h, test/yacc/calc_code_top.tab.c:
+	RCS_BASE
+
+	* output.c:
+	amend updates for 'outline' when processing "%code" in code-file
+
+	* output.c:
+	modify output_code_lines() to show begin/end block comments which were in
+	reader.c, and to generate a #line for the code-file.
+
+	* reader.c:
+	modify copy_code() to allow for multiple %code directives for a given
+	section, recording the input line-number for each directive as a #line
+	in the resulting string.  remove the block start/end comments, since those
+	will be done for a whole section in output.c
+
+	* mstring.c, defs.h: add msrenew()
+
+	* test/yacc/calc_code_all.error, test/yacc/calc_code_all.output, test/yacc/calc_code_default.error, test/yacc/calc_code_default.output, test/yacc/calc_code_default.tab.h, test/yacc/calc_code_imports.error, test/yacc/calc_code_imports.output, test/yacc/calc_code_imports.tab.c, test/yacc/calc_code_imports.tab.h, test/yacc/calc_code_provides.error, test/yacc/calc_code_provides.output, test/yacc/calc_code_requires.error, test/yacc/calc_code_requires.output, test/yacc/calc_code_top.error, test/yacc/calc_code_top.output, test/yacc/calc_code_top.tab.h:
+	RCS_BASE
+
+2019-11-18  Thomas E. Dickey  <dickey@invisible-island.net>
+
+	* test/calc_code_imports.y, test/calc_code_all.y, test/calc_code_default.y, test/calc_code_top.y, test/calc_code_provides.y, test/calc_code_requires.y:
+	RCS_BASE
+
+2019-11-04  Michael.Forney
+
+	* defs.h: add missing "extern" for new variable "code_lines"
+
+2019-11-03  Thomas E. Dickey  <dickey@invisible-island.net>
+
+	* main.c: build-fix for MinGW cross-compiling
+
+	* output.c, reader.c: gcc-warnings
+
+	* output.c: check validity of text_file before rewind
+	remove redundant check of iflag
+
+	* main.c: fix memory-leak reported by clang
+
+	* mkpar.c: guard against a null-reference reported by clang (unlikely)
+
+	* reader.c: fix two coverity warnings:
+	a) resource leak on malloc-failure
+	b) possible null-pointer dereference on parse-error
+
+	* test/btyacc/err_inherit4.tab.h, test/btyacc/btyacc_demo.tab.h: regen
+
+	* defs.h: use enum's to simplify recent change
+
+	* mstring.c:
+	enable mstring() in regular byacc, since Zoulas' change relies upon it
+
+2019-11-03  Christos.Zoulas
+
+	* defs.h, reader.c, output.c: add support for bison's "%code" feature
+	also fix a small bug: declare YYLTYPE externally when producing locations
+
+2019-11-03  Thomas E. Dickey  <dickey@invisible-island.net>
+
+	* test/btyacc/help.error, test/btyacc/no_b_opt.error, test/btyacc/no_output2.error, test/btyacc/no_p_opt.error, test/yacc/help.error, test/yacc/no_b_opt.error, test/yacc/no_output2.error, test/yacc/no_p_opt.error:
+	regen
+
+	* test/run_test.sh:
+	there's no standard wording for the options-errors from getopt;
+	filter that to "error message" in the test reference files.
+
+	* main.c:
+	provide for using getopt(), to accommodate a case where developers have
+	relied upon non-POSIX behavior.
+
+	* test/run_test.sh:
+	getopt's messages do not print the full pathname of yacc in some cases;
+	adjust the sed-script which changes those to "YACC"
+
+	* configure: regen
+
+	* config_h.in: regen, using autoheader-252
+
+	* configure.in: add configure check for getopt
+
+	* configure: regen
+
+	* aclocal.m4:
+	resync with my-autoconf adds a fix which accommodates a difference in
+	warning options between gcc/clang when --enable-warnings is not set.
+
+	* VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile:
+	bump
+
+2019-09-11  Thomas E. Dickey  <dickey@invisible-island.net>
+
+	* config.guess, config.sub: 2019-09-10
+
+2019-06-17  Thomas E. Dickey  <dickey@invisible-island.net>
+
+	* test/btyacc/big_b.error, test/btyacc/big_l.error, test/btyacc/help.error, test/btyacc/no_b_opt.error, test/btyacc/no_output2.error, test/btyacc/no_p_opt.error, test/btyacc/nostdin.error, test/yacc/big_b.error, test/yacc/big_l.error, test/yacc/help.error, test/yacc/no_b_opt.error, test/yacc/no_output2.error, test/yacc/no_p_opt.error, test/yacc/nostdin.error:
+	regen
+
+	* test/run_test.sh: test "-H" rather than "-D"
+
+2019-06-16  Thomas E. Dickey  <dickey@invisible-island.net>
+
+	* main.c, yacc.1:
+	change "-D" option to "-H" (discussion with Ethan Sommer)
+
+	* VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile:
+	bump
+
+	* test/btyacc/defines1.calc.c, test/btyacc/defines2.calc.c, test/btyacc/defines3.calc.c:
+	RCS_BASE
+
+	* test/run_test.sh: in test_defines, save the ".c" file too
+
+	* test/yacc/defines3.calc.c, test/yacc/defines2.calc.c, test/yacc/defines1.calc.c:
+	RCS_BASE
+
+	* test/run_test.sh:
+	output of test_defines should be a header ".h", not ".c"
+
+	* test/btyacc/defines1.calc.h, test/btyacc/defines1.error, test/btyacc/defines1.output, test/btyacc/defines2.calc.h, test/btyacc/defines2.error, test/btyacc/defines2.output, test/btyacc/defines3.calc.h, test/btyacc/defines3.error, test/btyacc/defines3.output:
+	RCS_BASE
+
+	* main.c: however, a subsequent -d cancels -D
+
+	* test/yacc/defines1.calc.h, test/yacc/defines3.calc.h: RCS_BASE
+
+	* main.c: -D option implies -d
+
+	* test/yacc/defines1.error, test/yacc/defines1.output, test/yacc/defines2.calc.h, test/yacc/defines2.error, test/yacc/defines2.output, test/yacc/defines3.error, test/yacc/defines3.output:
+	RCS_BASE
+
+	* yacc.1: align macro definitions with my other manpages
+
+	* test/run_test.sh: add test for -D after -d or -b options
+
+	* test/btyacc/stdin1.calc.c, test/btyacc/stdin1.error, test/btyacc/stdin1.output, test/btyacc/stdin2.calc.c, test/btyacc/stdin2.error, test/btyacc/stdin2.output:
+	RCS_BASE
+
+	* test/btyacc/big_b.error, test/btyacc/big_b.output, test/btyacc/big_l.error, test/btyacc/big_l.output, test/btyacc/help.error, test/btyacc/help.output, test/btyacc/no_b_opt.error, test/btyacc/no_b_opt.output, test/btyacc/no_b_opt1.error, test/btyacc/no_b_opt1.output, test/btyacc/no_code_c.error, test/btyacc/no_code_c.output, test/btyacc/no_defines.error, test/btyacc/no_defines.output, test/btyacc/no_graph.error, test/btyacc/no_graph.output, test/btyacc/no_include.error, test/btyacc/no_include.output, test/btyacc/no_opts.error, test/btyacc/no_opts.output, test/btyacc/no_output.error, test/btyacc/no_output.output, test/btyacc/no_output1.error, test/btyacc/no_output1.output, test/btyacc/no_output2.error, test/btyacc/no_output2.output, test/btyacc/no_p_opt.error, test/btyacc/no_p_opt.output, test/btyacc/no_p_opt1.error, test/btyacc/no_p_opt1.output, test/btyacc/no_verbose.error, test/btyacc/no_verbose.output, test/btyacc/nostdin.error, test/btyacc/nostdin.output, test/yacc/big_b.error
 , test/yacc/big_b.output, test/yacc/big_l.error, test/yacc/big_l.output, test/yacc/help.error, test/yacc/help.output, test/yacc/no_b_opt.error, test/yacc/no_b_opt.output, test/yacc/no_b_opt1.error, test/yacc/no_b_opt1.output, test/yacc/no_code_c.error, test/yacc/no_code_c.output, test/yacc/no_defines.error, test/yacc/no_defines.output, test/yacc/no_graph.error, test/yacc/no_graph.output, test/yacc/no_include.error, test/yacc/no_include.output, test/yacc/no_opts.error, test/yacc/no_opts.output, test/yacc/no_output.error, test/yacc/no_output.output, test/yacc/no_output1.error, test/yacc/no_output1.output, test/yacc/no_output2.error, test/yacc/no_output2.output, test/yacc/no_p_opt.error, test/yacc/no_p_opt.output, test/yacc/no_p_opt1.error, test/yacc/no_p_opt1.output, test/yacc/no_verbose.error, test/yacc/no_verbose.output, test/yacc/nostdin.error, test/yacc/nostdin.output:
+	regen
+
+	* test/run_test.sh:
+	add a test for stdin "-" vs end-options "--", and correct a redirection
+	of stderr in test_flags
+
+	* test/yacc/stdin2.output, test/yacc/stdin2.calc.c, test/yacc/stdin1.calc.c, test/yacc/stdin1.error, test/yacc/stdin1.output, test/yacc/stdin2.error:
+	RCS_BASE
+
+	* test/btyacc/big_b.output, test/btyacc/big_l.output, test/btyacc/help.output, test/btyacc/no_b_opt.output, test/btyacc/no_output2.output, test/btyacc/no_p_opt.output, test/btyacc/nostdin.output, test/yacc/big_b.output, test/yacc/big_l.output, test/yacc/help.output, test/yacc/no_b_opt.output, test/yacc/no_output2.output, test/yacc/no_p_opt.output, test/yacc/nostdin.output:
+	regen
+
+	* main.c: add -D option, to specify filename vs y.tab.h for -d
+
+	* defs.h: add dflag2, for -D option
+
+	* yacc.1: document -D option
+
+	* config_h.in: updated with autoheader-252
+
+	* configure: regen
+
+	* package/debian/copyright: bump
+
+	* aclocal.m4: add CF_GETOPT_HEADER
+
+	* aclocal.m4: Improved autoconf macros:
+	+ CF_CC_ENV_FLAGS
+		putting preprocessor flags in CFLAGS also is a nuisance, which can be
+		addressed in the same way.
+	+ CF_GCC_WARNINGS
+		factor out workaround for XTSTRINGDEFINES as CF_CONST_X_STRING
+	+ CF_GNU_SOURCE
+		The check for _DEFAULT_SOURCE should apply to "recent" Cygwin (since early 2016),
+		and except for "NEWLIB" vs "GLIBC" in the test, acts the same if I pretend
+		that "newlib" is the GNU C library.  Without this, the check falls through
+		to the _XOPEN_SOURCE test, which breaks the pseudoterminal checks for xterm.
+	+ CF_POSIX_C_SOURCE
+		add/use CF_POSIX_VISIBLE
+	+ CF_TRY_XOPEN_SOURCE
+		use CF_APPEND_TEXT
+	+ CF_WITH_MAN2HTML
+		use sed to work around non-POSIX tail utility
+	+ CF_XOPEN_SOURCE
+		use CF_APPEND_TEXT
+		add/use CF_POSIX_VISIBLE
+
+	* VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile:
+	bump
+
+2019-06-10  Thomas E. Dickey  <dickey@invisible-island.net>
+
+	* config.guess: 2019-06-10
+
+2019-05-22  Thomas E. Dickey  <dickey@invisible-island.net>
+
+	* config.sub: 2019-05-22
+
+2018-06-09  Thomas E. Dickey  <dickey@invisible-island.net>
+
+	* yacc.1: minor typographical fixes
+
+	* test/btyacc/err_syntax20.tab.c, test/btyacc/error.tab.c, test/btyacc/expr.oxout.tab.c, test/btyacc/grammar.tab.c, test/btyacc/inherit0.tab.c, test/btyacc/inherit1.tab.c, test/btyacc/inherit2.tab.c, test/btyacc/ok_syntax1.tab.c, test/btyacc/pure_calc.tab.c, test/btyacc/pure_error.tab.c, test/btyacc/quote_calc-s.tab.c, test/btyacc/quote_calc.tab.c, test/btyacc/quote_calc2-s.tab.c, test/btyacc/quote_calc2.tab.c, test/btyacc/quote_calc3-s.tab.c, test/btyacc/quote_calc3.tab.c, test/btyacc/quote_calc4-s.tab.c, test/btyacc/quote_calc4.tab.c, test/btyacc/varsyntax_calc1.tab.c, test/btyacc/btyacc_calc1.tab.c, test/btyacc/btyacc_demo.tab.c, test/btyacc/btyacc_destroy1.tab.c, test/btyacc/btyacc_destroy2.tab.c, test/btyacc/btyacc_destroy3.tab.c, test/btyacc/calc.tab.c, test/btyacc/calc1.tab.c, test/btyacc/calc2.tab.c, test/btyacc/calc3.tab.c, test/btyacc/code_calc.code.c, test/btyacc/code_error.code.c, test/btyacc/empty.tab.c, test/btyacc/err_inherit3.tab.c, test/btyacc/err_inherit4.tab.c, t
 est/btyacc/err_syntax10.tab.c, test/btyacc/err_syntax11.tab.c, test/btyacc/err_syntax12.tab.c, test/btyacc/err_syntax18.tab.c, test/btyacc/rename_debug.c, btyaccpar.c:
+	regen
+
+	* VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile:
+	bump
+
+2018-06-09  Tom.Shields
+
+	* btyaccpar.skel:
+	add casts to fix g++ (clang++) compile errors in the backtracking skeleton
+	due to assignment of ‘void *’ to another pointer type.
+
+2018-05-25  Thomas E. Dickey  <dickey@invisible-island.net>
+
+	* test/run_make.sh:
+	check if this is bison 3+ before adding options to suppress warnings
+
+	* package/byacc.spec: build-fix for Mageia 6
+
+	* package/byacc.spec: add btyacc package
+
+	* VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile:
+	bump
+
+	* package/debian/control: add a package for btyacc
+
+	* package/debian/rules: generate a package for btyacc
+
+2018-05-24  Thomas E. Dickey  <dickey@invisible-island.net>
+
+	* test/btyacc/pure_calc.tab.c, test/btyacc/pure_error.tab.c, test/btyacc/quote_calc-s.tab.c, test/btyacc/quote_calc.tab.c, test/btyacc/quote_calc2-s.tab.c, test/btyacc/quote_calc2.tab.c, test/btyacc/quote_calc3-s.tab.c, test/btyacc/quote_calc3.tab.c, test/btyacc/quote_calc4-s.tab.c, test/btyacc/quote_calc4.tab.c, test/btyacc/varsyntax_calc1.tab.c, test/btyacc/code_error.code.c, test/btyacc/empty.tab.c, test/btyacc/err_inherit3.tab.c, test/btyacc/err_inherit4.tab.c, test/btyacc/err_syntax10.tab.c, test/btyacc/err_syntax11.tab.c, test/btyacc/err_syntax12.tab.c, test/btyacc/err_syntax18.tab.c, test/btyacc/err_syntax20.tab.c, test/btyacc/error.tab.c, test/btyacc/expr.oxout.tab.c, test/btyacc/grammar.tab.c, test/btyacc/inherit0.tab.c, test/btyacc/inherit1.tab.c, test/btyacc/inherit2.tab.c, test/btyacc/ok_syntax1.tab.c, btyaccpar.c, test/btyacc/btyacc_calc1.tab.c, test/btyacc/btyacc_demo.tab.c, test/btyacc/btyacc_destroy1.tab.c, test/btyacc/btyacc_destroy2.tab.c, test/btyacc/btyacc_destr
 oy3.tab.c, test/btyacc/calc.tab.c, test/btyacc/calc1.tab.c, test/btyacc/calc2.tab.c, test/btyacc/calc3.tab.c, test/btyacc/code_calc.code.c, test/btyacc/rename_debug.c:
+	regen
+
+	* btyaccpar.skel: fix typo
+
+2018-05-21  Thomas E. Dickey  <dickey@invisible-island.net>
+
+	* test/run_make.sh:
+	ignore case for "%" directives to skip with old-yacc, and add %token-table
+	to the list
+
+	* btyaccpar.c: regen
+
+2018-05-21  Christos.Zoulas
+
+	* btyaccpar.skel:
+	improve compatibility with bison by changing the YYLLOC_DEFAULT macro to use
+	YYRHSLOC() macro, and adjusting the array indices of yyerror_loc_range[] for
+	consistency.
+
+2018-05-10  Thomas E. Dickey  <dickey@invisible-island.net>
+
+	* output.c:
+	add a fallback definition for YYDEBUG to the -i externs file.
+
+	* test/btyacc/rename_debug.i, test/yacc/rename_debug.i: regen
+
+	* VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile:
+	bump
+
+2018-05-09  Thomas E. Dickey  <dickey@invisible-island.net>
+
+	* configure: regen
+
+	* aclocal.m4: resync with my-autoconf
+
+	* VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile:
+	bump
+
+	* test/btyacc/rename_debug.i, btyaccpar.c, test/btyacc/btyacc_calc1.tab.c, test/btyacc/btyacc_demo.tab.c, test/btyacc/btyacc_destroy1.tab.c, test/btyacc/btyacc_destroy2.tab.c, test/btyacc/btyacc_destroy3.tab.c, test/btyacc/calc.tab.c, test/btyacc/calc1.tab.c, test/btyacc/calc2.tab.c, test/btyacc/calc3.tab.c, test/btyacc/code_calc.code.c, test/btyacc/code_error.code.c, test/btyacc/empty.tab.c, test/btyacc/err_inherit3.tab.c, test/btyacc/err_inherit4.tab.c, test/btyacc/err_syntax10.tab.c, test/btyacc/err_syntax11.tab.c, test/btyacc/err_syntax12.tab.c, test/btyacc/err_syntax18.tab.c, test/btyacc/err_syntax20.tab.c, test/btyacc/error.tab.c, test/btyacc/expr.oxout.tab.c, test/btyacc/grammar.tab.c, test/btyacc/inherit0.tab.c, test/btyacc/inherit1.tab.c, test/btyacc/inherit2.tab.c, test/btyacc/ok_syntax1.tab.c, test/btyacc/pure_calc.tab.c, test/btyacc/pure_error.tab.c, test/btyacc/quote_calc-s.tab.c, test/btyacc/quote_calc.tab.c, test/btyacc/quote_calc2-s.tab.c, test/btyacc/quote_calc2.ta
 b.c, test/btyacc/quote_calc3-s.tab.c, test/btyacc/quote_calc3.tab.c, test/btyacc/quote_calc4-s.tab.c, test/btyacc/quote_calc4.tab.c, test/btyacc/rename_debug.c, test/btyacc/varsyntax_calc1.tab.c:
+	regen
+
+	* btyaccpar.skel: apply Guy Harris' changes here as well
+
+	* test/btyacc/rename_debug.i, test/yacc/rename_debug.i: regen
+
+	* output.c: correct/improve fallback prototype for yylex()
+
+	* test/btyacc/rename_debug.i, test/yacc/rename_debug.i: regen
+
+2018-05-08  Thomas E. Dickey  <dickey@invisible-island.net>
+
+	* test/btyacc/grammar.tab.c, test/yacc/grammar.tab.c: regen
+
+	* test/grammar.y:
+	quiet some warnings from gcc 7 when doing "make check_make"
+
+	* package/debian/watch, package/pkgsrc/Makefile: update ftp-url
+
+	* test/btyacc/ok_syntax1.tab.h, test/btyacc/btyacc_calc1.tab.h: regen
+
+	* output.c:
+	provide yylex() declaration for simple case (request by "Mutiny")
+
+	* test/yacc/err_syntax20.tab.c, test/yacc/error.tab.c, test/yacc/expr.oxout.tab.c, test/yacc/grammar.tab.c, test/yacc/ok_syntax1.tab.c, test/yacc/ok_syntax1.tab.h, test/yacc/pure_calc.tab.c, test/yacc/pure_error.tab.c, test/yacc/quote_calc-s.tab.c, test/yacc/quote_calc.tab.c, test/yacc/quote_calc2-s.tab.c, test/yacc/quote_calc2.tab.c, test/yacc/quote_calc3-s.tab.c, test/yacc/quote_calc3.tab.c, test/yacc/quote_calc4-s.tab.c, test/yacc/quote_calc4.tab.c, test/yacc/varsyntax_calc1.tab.c, test/yacc/calc.tab.c, test/yacc/calc1.tab.c, test/yacc/calc2.tab.c, test/yacc/calc3.tab.c, test/yacc/code_calc.code.c, test/yacc/code_error.code.c, test/yacc/empty.tab.c, test/yacc/err_syntax10.tab.c, test/yacc/err_syntax11.tab.c, test/yacc/err_syntax12.tab.c, test/yacc/err_syntax18.tab.c, test/yacc/rename_debug.c, test/yacc/rename_debug.i, yaccpar.c:
+	regen
+
+	* VERSION, package/byacc.spec, package/debian/changelog, package/debian/copyright, package/mingw-byacc.spec, package/pkgsrc/Makefile:
+	bump
+
+2018-05-06  Guy.Harris
+
+	* yaccpar.skel: two fixes:
+	1) define yydebug only if YYDEBUG is defined and
+	2) make yynerrs a parser-local variable if the parser is reentrant.
+
+2018-02-24  Guy.Harris
+
+	* output.c: do not emit "extern YYSTYPE yylval;" for pure parsers
+
+2018-02-05  Thomas E. Dickey  <dickey@invisible-island.net>
+
+	* config.sub: 2018-01-15
+
+	* config.guess: 2018-01-26
+
+2017-12-04  erik.b.andersen
+
+	* main.c: A proper path for temporary files is needed by byacc under
+	Windows commandline, otherwise there's a risk of empty files.
+	The TEMP environment variable is always defined in Windows.
+
+	* defs.h: The noreturn attribute needs to be specified before function
+	to be portable among compilers (gcc, clang, msvc).
+
+2017-12-04  Thomas E. Dickey  <dickey@invisible-island.net>
+
+	* reader.c: adapted fix by Erik B:
+	 a) increase the length of name[] to account for a trailing null
+	 b) note that calling syntax_error() from get_number() does not return
+
+2017-09-14  Tom.Shields
+
+	* yacc.1: fix typo
+
+2017-07-09  Thomas E. Dickey  <dickey@invisible-island.net>
+
+	* package/byacc.spec, package/mingw-byacc.spec:
+	use predefined "configure"
+
+	* reader.c: remove unused assignment
+
+	* package/debian/rules: use dpkg-buildflags
+
+	* configure: regen
+
+	* aclocal.m4: resync with my-autoconf
+
+	* reader.c, output.c, defs.h:
+	add/use IS_NAME1() and IS_NAME2() to reduce clutter
+
+	* reader.c, output.c, defs.h:
+	guard against sign-extension in ctype-macros
+
+	* VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile:
+	bump
+
+	* reader.c: check for numeric overflow in get_number()
+
+	* reader.c:
+	correct limit-checks for input filename and line-number, in case no valid
+	filename and/or number was found.
+
 2017-04-30  Thomas E. Dickey  <dickey@invisible-island.net>
 
 	* test/btyacc/quote_calc-s.tab.c, test/btyacc/quote_calc2-s.tab.c, test/btyacc/quote_calc2.tab.c, test/btyacc/quote_calc3-s.tab.c, test/btyacc/quote_calc3.tab.c, test/btyacc/quote_calc4-s.tab.c, test/btyacc/quote_calc4.tab.c, test/btyacc/varsyntax_calc1.tab.c, test/btyacc/err_syntax18.tab.c, test/btyacc/err_syntax20.tab.c, test/btyacc/error.tab.c, test/btyacc/expr.oxout.tab.c, test/btyacc/grammar.tab.c, test/btyacc/inherit0.tab.c, test/btyacc/inherit1.tab.c, test/btyacc/inherit2.tab.c, test/btyacc/ok_syntax1.tab.c, test/btyacc/pure_calc.tab.c, test/btyacc/pure_error.tab.c, test/btyacc/quote_calc.tab.c, test/btyacc/btyacc_calc1.tab.c, test/btyacc/btyacc_demo.tab.c, test/btyacc/btyacc_destroy1.tab.c, test/btyacc/btyacc_destroy2.tab.c, test/btyacc/btyacc_destroy3.tab.c, test/btyacc/calc.tab.c, test/btyacc/calc1.tab.c, test/btyacc/calc2.tab.c, test/btyacc/calc3.tab.c, test/btyacc/code_calc.code.c, test/btyacc/code_error.code.c, test/btyacc/empty.tab.c, test/btyacc/err_inherit3.tab.c, t
 est/btyacc/err_inherit4.tab.c, test/btyacc/err_syntax10.tab.c, test/btyacc/err_syntax11.tab.c, test/btyacc/err_syntax12.tab.c, test/btyacc/rename_debug.c, btyaccpar.c, btyaccpar.skel:
@@ -22,6 +442,10 @@
 	* VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile:
 	bump
 
+2017-04-29  Thomas E. Dickey  <dickey@invisible-island.net>
+
+	* config.sub: 2017-04-02
+
 2017-03-18  Thomas E. Dickey  <dickey@invisible-island.net>
 
 	* config.sub: 2017-02-07
@@ -2558,7 +2982,7 @@
 
 	* vmsbuild.com: original version
 
-2000-02-23  dickey@clark.net
+2000-02-23  Thomas E. Dickey  <dickey@clark.net>
 
 	* test/RCS, RCS: PERMIT FILE
 
@@ -2597,7 +3021,7 @@
 
 	* test/ftp.output, test/ftp.tab.c, test/ftp.tab.h: RCS_BASE
 
-1993-02-22  Thomas E. Dickey  <dickey@software.org>
+1993-02-22  dickey@software.org
 
 	* test/yacc/error.output, test/yacc/error.tab.h:
 	reference output for testing
@@ -2637,7 +3061,7 @@
 
 	* symtab.c, lalr.c, error.c: original version
 
-1990-01-16  Thomas E. Dickey  <dickey@software.org>
+1990-01-16  dickey@software.org
 
 	* test/code_error.y, test/pure_error.y: RCS_BASE
 

Modified: head/contrib/byacc/MANIFEST
==============================================================================
--- head/contrib/byacc/MANIFEST	Tue Jul 14 00:46:20 2020	(r363169)
+++ head/contrib/byacc/MANIFEST	Tue Jul 14 01:54:24 2020	(r363170)
@@ -1,4 +1,4 @@
-MANIFEST for byacc-20170430, version t20170430
+MANIFEST for byacc-20200330, version t20200330
 --------------------------------------------------------------------------------
 MANIFEST                        this file
 ACKNOWLEDGEMENTS                original version of byacc - 1993
@@ -77,10 +77,6 @@ test/btyacc/btyacc_demo.error   reference output for t
 test/btyacc/btyacc_demo.output  reference output for testing
 test/btyacc/btyacc_demo.tab.c   reference output for testing
 test/btyacc/btyacc_demo.tab.h   reference output for testing
-test/btyacc/btyacc_demo2.error  reference output for testing
-test/btyacc/btyacc_demo2.output reference output for testing
-test/btyacc/btyacc_demo2.tab.c  reference output for testing
-test/btyacc/btyacc_demo2.tab.h  reference output for testing
 test/btyacc/btyacc_destroy1.error  reference output for testing
 test/btyacc/btyacc_destroy1.output  reference output for testing
 test/btyacc/btyacc_destroy1.tab.c  reference output for testing
@@ -114,11 +110,6 @@ test/btyacc/code_calc.error     reference output for t
 test/btyacc/code_calc.output    reference output for testing
 test/btyacc/code_calc.tab.c     reference output for testing
 test/btyacc/code_calc.tab.h     reference output for testing
-test/btyacc/code_debug.c        reference for test-output
-test/btyacc/code_debug.error    reference for test-output
-test/btyacc/code_debug.h        reference for test-output
-test/btyacc/code_debug.i        reference for test-output
-test/btyacc/code_debug.output   reference for test-output
 test/btyacc/code_error.code.c   reference output for testing
 test/btyacc/code_error.error    reference output for testing
 test/btyacc/code_error.output   reference output for testing
@@ -382,6 +373,7 @@ test/btyacc_demo.y              testcase for btyacc
 test/btyacc_destroy1.y          btyacc test-case for %parse-param
 test/btyacc_destroy2.y          btyacc test-case for %parse-param
 test/btyacc_destroy3.y          btyacc test-case for %parse-param
+test/calc.tab.c                 c-file for calc.y
 test/calc.y                     example from VMS freeware version of byacc
 test/calc1.y                    advanced example from Steve Johnson's paper.
 test/calc2.y                    test-cases and reference files for %lex-param / %parse-param

Modified: head/contrib/byacc/VERSION
==============================================================================
--- head/contrib/byacc/VERSION	Tue Jul 14 00:46:20 2020	(r363169)
+++ head/contrib/byacc/VERSION	Tue Jul 14 01:54:24 2020	(r363170)
@@ -1 +1 @@
-20170430
+20200330

Modified: head/contrib/byacc/aclocal.m4
==============================================================================
--- head/contrib/byacc/aclocal.m4	Tue Jul 14 00:46:20 2020	(r363169)
+++ head/contrib/byacc/aclocal.m4	Tue Jul 14 01:54:24 2020	(r363170)
@@ -1,7 +1,7 @@
-dnl $Id: aclocal.m4,v 1.42 2017/02/01 10:12:21 tom Exp $
+dnl $Id: aclocal.m4,v 1.48 2020/03/10 22:53:47 tom Exp $
 dnl Macros for byacc configure script (Thomas E. Dickey)
 dnl ---------------------------------------------------------------------------
-dnl Copyright 2004-2016,2017 Thomas E. Dickey
+dnl Copyright 2004-2019,2020 Thomas E. Dickey
 dnl 
 dnl Permission is hereby granted, free of charge, to any person obtaining a
 dnl copy of this software and associated documentation files (the
@@ -54,7 +54,7 @@ define([CF_ACVERSION_COMPARE],
 [ifelse([$8], , ,[$8])],
 [ifelse([$9], , ,[$9])])])dnl
 dnl ---------------------------------------------------------------------------
-dnl CF_ADD_CFLAGS version: 12 updated: 2015/04/12 15:39:00
+dnl CF_ADD_CFLAGS version: 13 updated: 2017/02/25 18:57:40
 dnl -------------
 dnl Copy non-preprocessor flags to $CFLAGS, preprocessor flags to $CPPFLAGS
 dnl The second parameter if given makes this macro verbose.
@@ -84,10 +84,10 @@ case $cf_fix_cppflags in
 				&& cf_fix_cppflags=yes
 
 			if test $cf_fix_cppflags = yes ; then
-				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
+				CF_APPEND_TEXT(cf_new_extra_cppflags,$cf_add_cflags)
 				continue
 			elif test "${cf_tst_cflags}" = "\"'" ; then
-				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
+				CF_APPEND_TEXT(cf_new_extra_cppflags,$cf_add_cflags)
 				continue
 			fi
 			;;
@@ -102,17 +102,17 @@ case $cf_fix_cppflags in
 				CF_REMOVE_DEFINE(CPPFLAGS,$CPPFLAGS,$cf_tst_cppflags)
 				;;
 			esac
-			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
+			CF_APPEND_TEXT(cf_new_cppflags,$cf_add_cflags)
 			;;
 		esac
 		;;
 	(*)
-		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
+		CF_APPEND_TEXT(cf_new_cflags,$cf_add_cflags)
 		;;
 	esac
 	;;
 (yes)
-	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
+	CF_APPEND_TEXT(cf_new_extra_cppflags,$cf_add_cflags)
 
 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[[^"]]*"'\''//'`
 
@@ -125,23 +125,33 @@ done
 
 if test -n "$cf_new_cflags" ; then
 	ifelse([$2],,,[CF_VERBOSE(add to \$CFLAGS $cf_new_cflags)])
-	CFLAGS="$CFLAGS $cf_new_cflags"
+	CF_APPEND_TEXT(CFLAGS,$cf_new_cflags)
 fi
 
 if test -n "$cf_new_cppflags" ; then
 	ifelse([$2],,,[CF_VERBOSE(add to \$CPPFLAGS $cf_new_cppflags)])
-	CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
+	CF_APPEND_TEXT(CPPFLAGS,$cf_new_cppflags)
 fi
 
 if test -n "$cf_new_extra_cppflags" ; then
 	ifelse([$2],,,[CF_VERBOSE(add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags)])
-	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
+	CF_APPEND_TEXT(EXTRA_CPPFLAGS,$cf_new_extra_cppflags)
 fi
 
 AC_SUBST(EXTRA_CPPFLAGS)
 
 ])dnl
 dnl ---------------------------------------------------------------------------
+dnl CF_APPEND_TEXT version: 1 updated: 2017/02/25 18:58:55
+dnl --------------
+dnl use this macro for appending text without introducing an extra blank at
+dnl the beginning
+define([CF_APPEND_TEXT],
+[
+	test -n "[$]$1" && $1="[$]$1 "
+	$1="[$]{$1}$2"
+])dnl
+dnl ---------------------------------------------------------------------------
 dnl CF_ARG_DISABLE version: 3 updated: 1999/03/30 17:24:31
 dnl --------------
 dnl Allow user to disable a normally-on option.
@@ -171,7 +181,7 @@ ifelse([$3],,[    :]dnl
 ])dnl
 ])])dnl
 dnl ---------------------------------------------------------------------------
-dnl CF_CC_ENV_FLAGS version: 6 updated: 2016/08/29 20:57:00
+dnl CF_CC_ENV_FLAGS version: 9 updated: 2018/07/29 18:03:26
 dnl ---------------
 dnl Check for user's environment-breakage by stuffing CFLAGS/CPPFLAGS content
 dnl into CC.  This will not help with broken scripts that wrap the compiler
@@ -188,19 +198,37 @@ AC_DEFUN([CF_CC_ENV_FLAGS],
 # This should have been defined by AC_PROG_CC
 : ${CC:=cc}
 
+AC_MSG_CHECKING(\$CFLAGS variable)
+case "x$CFLAGS" in
+(*-[[IUD]]*)
+	AC_MSG_RESULT(broken)
+	AC_MSG_WARN(your environment uses the CFLAGS variable to hold CPPFLAGS options)
+	cf_flags="$CFLAGS"
+	CFLAGS=
+	for cf_arg in $cf_flags
+	do
+		CF_ADD_CFLAGS($cf_arg)
+	done
+	;;
+(*)
+	AC_MSG_RESULT(ok)
+	;;
+esac
+
 AC_MSG_CHECKING(\$CC variable)
 case "$CC" in
 (*[[\ \	]]-*)
 	AC_MSG_RESULT(broken)
-	AC_MSG_WARN(your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options)
+	AC_MSG_WARN(your environment uses the CC variable to hold CFLAGS/CPPFLAGS options)
 	# humor him...
-	cf_flags=`echo "$CC" | sed -e 's/^.*[[ 	]]\(-[[^ 	]]\)/\1/'`
-	CC=`echo "$CC " | sed -e 's/[[ 	]]-[[^ 	]].*$//' -e 's/[[ 	]]*$//'`
+	cf_prog=`echo "$CC" | sed -e 's/	/ /g' -e 's/[[ ]]* / /g' -e 's/[[ ]]*[[ ]]-[[^ ]].*//'`
+	cf_flags=`echo "$CC" | ${AWK:-awk} -v prog="$cf_prog" '{ printf("%s", [substr]([$]0,1+length(prog))); }'`
+	CC="$cf_prog"
 	for cf_arg in $cf_flags
 	do
 		case "x$cf_arg" in
 		(x-[[IUDfgOW]]*)
-			CF_ADD_CFLAGS($cf_flags)
+			CF_ADD_CFLAGS($cf_arg)
 			;;
 		(*)
 			CC="$CC $cf_arg"
@@ -285,6 +313,66 @@ cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
 fi
 ])
 dnl ---------------------------------------------------------------------------
+dnl CF_CONST_X_STRING version: 4 updated: 2020/03/10 18:53:47
+dnl -----------------
+dnl The X11R4-X11R6 Xt specification uses an ambiguous String type for most
+dnl character-strings.
+dnl
+dnl It is ambiguous because the specification accommodated the pre-ANSI
+dnl compilers bundled by more than one vendor in lieu of providing a standard C
+dnl compiler other than by costly add-ons.  Because of this, the specification
+dnl did not take into account the use of const for telling the compiler that
+dnl string literals would be in readonly memory.
+dnl
+dnl As a workaround, one could (starting with X11R5) define XTSTRINGDEFINES, to
+dnl let the compiler decide how to represent Xt's strings which were #define'd. 
+dnl That does not solve the problem of using the block of Xt's strings which
+dnl are compiled into the library (and is less efficient than one might want).
+dnl
+dnl Xt specification 7 introduces the _CONST_X_STRING symbol which is used both
+dnl when compiling the library and compiling using the library, to tell the
+dnl compiler that String is const.
+AC_DEFUN([CF_CONST_X_STRING],
+[
+AC_REQUIRE([AC_PATH_XTRA])
+
+CF_SAVE_XTRA_FLAGS([CF_CONST_X_STRING])
+
+AC_TRY_COMPILE(
+[
+#include <stdlib.h>
+#include <X11/Intrinsic.h>
+],
+[String foo = malloc(1); (void)foo],[
+
+AC_CACHE_CHECK(for X11/Xt const-feature,cf_cv_const_x_string,[
+	AC_TRY_COMPILE(
+		[
+#define _CONST_X_STRING	/* X11R7.8 (perhaps) */
+#undef  XTSTRINGDEFINES	/* X11R5 and later */
+#include <stdlib.h>
+#include <X11/Intrinsic.h>
+		],[String foo = malloc(1); *foo = 0],[
+			cf_cv_const_x_string=no
+		],[
+			cf_cv_const_x_string=yes
+		])
+])
+
+CF_RESTORE_XTRA_FLAGS([CF_CONST_X_STRING])
+
+case $cf_cv_const_x_string in
+(no)
+	CF_APPEND_TEXT(CPPFLAGS,-DXTSTRINGDEFINES)
+	;;
+(*)
+	CF_APPEND_TEXT(CPPFLAGS,-D_CONST_X_STRING)
+	;;
+esac
+
+])
+])dnl
+dnl ---------------------------------------------------------------------------
 dnl CF_DISABLE_ECHO version: 13 updated: 2015/04/18 08:56:57
 dnl ---------------
 dnl You can always use "make -n" to see the actual options, but it's hard to
@@ -345,7 +433,7 @@ if test "$with_no_leaks" = yes ; then
 fi
 ])dnl
 dnl ---------------------------------------------------------------------------
-dnl CF_GCC_ATTRIBUTES version: 17 updated: 2015/04/12 15:39:00
+dnl CF_GCC_ATTRIBUTES version: 18 updated: 2020/03/10 18:53:47
 dnl -----------------
 dnl Test for availability of useful gcc __attribute__ directives to quiet
 dnl compiler warnings.  Though useful, not all are supported -- and contrary
@@ -389,7 +477,7 @@ cat > conftest.$ac_ext <<EOF
 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
 extern void foo(void) GCC_NORETURN;
-int main(int argc GCC_UNUSED, char *argv[[]] GCC_UNUSED) { return 0; }
+int main(int argc GCC_UNUSED, char *argv[[]] GCC_UNUSED) { (void)argc; (void)argv; return 0; }
 EOF
 	cf_printf_attribute=no
 	cf_scanf_attribute=no
@@ -455,9 +543,10 @@ rm -rf conftest*
 fi
 ])dnl
 dnl ---------------------------------------------------------------------------
-dnl CF_GCC_VERSION version: 7 updated: 2012/10/18 06:46:33
+dnl CF_GCC_VERSION version: 8 updated: 2019/09/07 13:38:36
 dnl --------------
-dnl Find version of gcc
+dnl Find version of gcc, and (because icc/clang pretend to be gcc without being
+dnl compatible), attempt to determine if icc/clang is actually used.
 AC_DEFUN([CF_GCC_VERSION],[
 AC_REQUIRE([AC_PROG_CC])
 GCC_VERSION=none
@@ -467,14 +556,17 @@ if test "$GCC" = yes ; then
 	test -z "$GCC_VERSION" && GCC_VERSION=unknown
 	AC_MSG_RESULT($GCC_VERSION)
 fi
+CF_INTEL_COMPILER(GCC,INTEL_COMPILER,CFLAGS)
+CF_CLANG_COMPILER(GCC,CLANG_COMPILER,CFLAGS)
 ])dnl
 dnl ---------------------------------------------------------------------------
-dnl CF_GCC_WARNINGS version: 32 updated: 2015/04/12 15:39:00
+dnl CF_GCC_WARNINGS version: 37 updated: 2020/01/05 20:04:12
 dnl ---------------
 dnl Check if the compiler supports useful warning options.  There's a few that
 dnl we don't use, simply because they're too noisy:
 dnl
 dnl	-Wconversion (useful in older versions of gcc, but not in gcc 2.7.x)
+dnl	-Winline (usually not worthwhile)
 dnl	-Wredundant-decls (system headers make this too noisy)
 dnl	-Wtraditional (combines too many unrelated messages, only a few useful)
 dnl	-Wwrite-strings (too noisy, but should review occasionally).  This
@@ -491,14 +583,11 @@ dnl
 AC_DEFUN([CF_GCC_WARNINGS],
 [
 AC_REQUIRE([CF_GCC_VERSION])
-CF_INTEL_COMPILER(GCC,INTEL_COMPILER,CFLAGS)
-CF_CLANG_COMPILER(GCC,CLANG_COMPILER,CFLAGS)
-
+if test "x$have_x" = xyes; then CF_CONST_X_STRING fi
 cat > conftest.$ac_ext <<EOF
 #line __oline__ "${as_me:-configure}"
 int main(int argc, char *argv[[]]) { return (argv[[argc-1]] == 0) ; }
 EOF
-
 if test "$INTEL_COMPILER" = yes
 then
 # The "-wdXXX" options suppress warnings:
@@ -533,8 +622,7 @@ then
 		fi
 	done
 	CFLAGS="$cf_save_CFLAGS"
-
-elif test "$GCC" = yes
+elif test "$GCC" = yes && test "$GCC_VERSION" != "unknown"
 then
 	AC_CHECKING([for $CC warning options])
 	cf_save_CFLAGS="$CFLAGS"
@@ -556,15 +644,12 @@ then
 		Wpointer-arith \
 		Wshadow \
 		Wstrict-prototypes \
-		Wundef $cf_gcc_warnings $cf_warn_CONST $1
+		Wundef Wno-inline $cf_gcc_warnings $cf_warn_CONST $1
 	do
 		CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
 		if AC_TRY_EVAL(ac_compile); then
 			test -n "$verbose" && AC_MSG_RESULT(... -$cf_opt)
 			case $cf_opt in
-			(Wcast-qual)
-				CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
-				;;
 			(Winline)
 				case $GCC_VERSION in
 				([[34]].*)
@@ -590,7 +675,33 @@ rm -rf conftest*
 AC_SUBST(EXTRA_CFLAGS)
 ])dnl
 dnl ---------------------------------------------------------------------------
-dnl CF_GNU_SOURCE version: 7 updated: 2016/08/05 05:15:37
+dnl CF_GETOPT_HEADER version: 6 updated: 2014/07/22 14:45:54
+dnl ----------------
+dnl Check for getopt's variables which are commonly defined in stdlib.h,
+dnl unistd.h or (nonstandard) in getopt.h
+AC_DEFUN([CF_GETOPT_HEADER],
+[
+AC_HAVE_HEADERS(unistd.h getopt.h)
+AC_CACHE_CHECK(for header declaring getopt variables,cf_cv_getopt_header,[
+cf_cv_getopt_header=none
+for cf_header in stdio.h stdlib.h unistd.h getopt.h
+do
+AC_TRY_COMPILE([
+#include <$cf_header>],
+[int x = optind; char *y = optarg],
+[cf_cv_getopt_header=$cf_header
+ break])
+done
+])
+if test $cf_cv_getopt_header != none ; then
+	AC_DEFINE(HAVE_GETOPT_HEADER,1,[Define to 1 if getopt variables are declared in header])
+fi
+if test $cf_cv_getopt_header = getopt.h ; then
+	AC_DEFINE(NEED_GETOPT_H,1,[Define to 1 if we must include getopt.h])
+fi
+])dnl
+dnl ---------------------------------------------------------------------------
+dnl CF_GNU_SOURCE version: 10 updated: 2018/12/10 20:09:41
 dnl -------------
 dnl Check if we must define _GNU_SOURCE to get a reasonable value for
 dnl _XOPEN_SOURCE, upon which many POSIX definitions depend.  This is a defect
@@ -598,38 +709,106 @@ dnl (or misfeature) of glibc2, which breaks portabilit
 dnl since it is interwoven with GNU extensions.
 dnl
 dnl Well, yes we could work around it...
+dnl
+dnl Parameters:
+dnl	$1 is the nominal value for _XOPEN_SOURCE
 AC_DEFUN([CF_GNU_SOURCE],
 [
-AC_CACHE_CHECK(if we must define _GNU_SOURCE,cf_cv_gnu_source,[
+cf_gnu_xopen_source=ifelse($1,,500,$1)
+
+AC_CACHE_CHECK(if this is the GNU C library,cf_cv_gnu_library,[
 AC_TRY_COMPILE([#include <sys/types.h>],[
-#ifndef _XOPEN_SOURCE
-make an error
-#endif],
-	[cf_cv_gnu_source=no],
-	[cf_save="$CPPFLAGS"
-	 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
-	 AC_TRY_COMPILE([#include <sys/types.h>],[
-#ifdef _XOPEN_SOURCE
-make an error
-#endif],
-	[cf_cv_gnu_source=no],
-	[cf_cv_gnu_source=yes])
-	CPPFLAGS="$cf_save"
-	])
+	#if __GLIBC__ > 0 && __GLIBC_MINOR__ >= 0
+		return 0;
+	#elif __NEWLIB__ > 0 && __NEWLIB_MINOR__ >= 0
+		return 0;
+	#else
+	#	error not GNU C library
+	#endif],
+	[cf_cv_gnu_library=yes],
+	[cf_cv_gnu_library=no])
 ])
 
-if test "$cf_cv_gnu_source" = yes
-then
-AC_CACHE_CHECK(if we should also define _DEFAULT_SOURCE,cf_cv_default_source,[
-CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
-	AC_TRY_COMPILE([#include <sys/types.h>],[
-#ifdef _DEFAULT_SOURCE
-make an error
-#endif],
-		[cf_cv_default_source=no],
-		[cf_cv_default_source=yes])
+if test x$cf_cv_gnu_library = xyes; then
+
+	# With glibc 2.19 (13 years after this check was begun), _DEFAULT_SOURCE
+	# was changed to help a little.  newlib incorporated the change about 4
+	# years later.
+	AC_CACHE_CHECK(if _DEFAULT_SOURCE can be used as a basis,cf_cv_gnu_library_219,[
+		cf_save="$CPPFLAGS"
+		CF_APPEND_TEXT(CPPFLAGS,-D_DEFAULT_SOURCE)
+		AC_TRY_COMPILE([#include <sys/types.h>],[
+			#if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 19) || (__GLIBC__ > 2)
+				return 0;
+			#elif (__NEWLIB__ == 2 && __NEWLIB_MINOR__ >= 4) || (__GLIBC__ > 3)
+				return 0;
+			#else
+			#	error GNU C library __GLIBC__.__GLIBC_MINOR__ is too old
+			#endif],
+			[cf_cv_gnu_library_219=yes],
+			[cf_cv_gnu_library_219=no])
+		CPPFLAGS="$cf_save"
 	])
-test "$cf_cv_default_source" = yes && CPPFLAGS="$CPPFLAGS -D_DEFAULT_SOURCE"
+
+	if test "x$cf_cv_gnu_library_219" = xyes; then
+		cf_save="$CPPFLAGS"
+		AC_CACHE_CHECK(if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE,cf_cv_gnu_dftsrc_219,[
+			CF_ADD_CFLAGS(-D_DEFAULT_SOURCE -D_XOPEN_SOURCE=$cf_gnu_xopen_source)
+			AC_TRY_COMPILE([
+				#include <limits.h>
+				#include <sys/types.h>
+				],[
+				#if (_XOPEN_SOURCE >= $cf_gnu_xopen_source) && (MB_LEN_MAX > 1)
+					return 0;
+				#else
+				#	error GNU C library is too old
+				#endif],
+				[cf_cv_gnu_dftsrc_219=yes],
+				[cf_cv_gnu_dftsrc_219=no])
+			])
+		test "x$cf_cv_gnu_dftsrc_219" = "xyes" || CPPFLAGS="$cf_save"
+	else
+		cf_cv_gnu_dftsrc_219=maybe
+	fi
+
+	if test "x$cf_cv_gnu_dftsrc_219" != xyes; then
+
+		AC_CACHE_CHECK(if we must define _GNU_SOURCE,cf_cv_gnu_source,[
+		AC_TRY_COMPILE([#include <sys/types.h>],[
+			#ifndef _XOPEN_SOURCE
+			#error	expected _XOPEN_SOURCE to be defined
+			#endif],
+			[cf_cv_gnu_source=no],
+			[cf_save="$CPPFLAGS"
+			 CF_ADD_CFLAGS(-D_GNU_SOURCE)
+			 AC_TRY_COMPILE([#include <sys/types.h>],[
+				#ifdef _XOPEN_SOURCE
+				#error	expected _XOPEN_SOURCE to be undefined
+				#endif],
+				[cf_cv_gnu_source=no],
+				[cf_cv_gnu_source=yes])
+			CPPFLAGS="$cf_save"
+			])
+		])
+
+		if test "$cf_cv_gnu_source" = yes
+		then
+		AC_CACHE_CHECK(if we should also define _DEFAULT_SOURCE,cf_cv_default_source,[
+			CF_APPEND_TEXT(CPPFLAGS,-D_GNU_SOURCE)
+			AC_TRY_COMPILE([#include <sys/types.h>],[
+				#ifdef _DEFAULT_SOURCE
+				#error	expected _DEFAULT_SOURCE to be undefined
+				#endif],
+				[cf_cv_default_source=no],
+				[cf_cv_default_source=yes])
+			])
+			if test "$cf_cv_default_source" = yes
+			then
+				CF_APPEND_TEXT(CPPFLAGS,-D_DEFAULT_SOURCE)
+			fi
+		fi
+	fi
+
 fi
 ])dnl
 dnl ---------------------------------------------------------------------------
@@ -935,7 +1114,7 @@ case ".[$]$1" in
 esac
 ])dnl
 dnl ---------------------------------------------------------------------------
-dnl CF_POSIX_C_SOURCE version: 9 updated: 2015/04/12 15:39:00
+dnl CF_POSIX_C_SOURCE version: 11 updated: 2018/12/31 20:46:17
 dnl -----------------
 dnl Define _POSIX_C_SOURCE to the given level, and _POSIX_SOURCE if needed.
 dnl
@@ -950,7 +1129,10 @@ dnl
 dnl Parameters:
 dnl	$1 is the nominal value for _POSIX_C_SOURCE
 AC_DEFUN([CF_POSIX_C_SOURCE],
-[
+[AC_REQUIRE([CF_POSIX_VISIBLE])dnl
+
+if test "$cf_cv_posix_visible" = no; then
+
 cf_POSIX_C_SOURCE=ifelse([$1],,199506L,[$1])
 
 cf_save_CFLAGS="$CFLAGS"

*** DIFF OUTPUT TRUNCATED AT 1000 LINES ***



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202007140154.06E1sOjN003426>