summaryrefslogtreecommitdiffstats
path: root/usr.bin/yacc
Commit message (Collapse)AuthorAgeFilesLines
* MFC: r313105, r313106jkim2017-05-311-0/+8
| | | | Update byacc to 20170201.
* MFC r315170:ngie2017-05-301-1/+1
| | | | | | | | | | | r315170 (by imp): Adopt SRCTOP in usr.bin Prefer ${SRCTOP}/foo over ${.CURDIR}/../../foo and ${SRCTOP}/usr.bin/foo over ${.CURDIR}/../foo for paths in Makefiles. Silence on: arch@ (twice)
* Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installedngie2016-05-041-7/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | after r298107 Summary of changes: - Replace all instances of FILES/TESTS with ${PACKAGE}FILES. This ensures that namespacing is kept with FILES appropriately, and that this shouldn't need to be repeated if the namespace changes -- only the definition of PACKAGE needs to be changed - Allow PACKAGE to be overridden by callers instead of forcing it to always be `tests`. In the event we get to the point where things can be split up enough in the base system, it would make more sense to group the tests with the blocks they're a part of, e.g. byacc with byacc-tests, etc - Remove PACKAGE definitions where possible, i.e. where FILES wasn't used previously. - Remove unnecessary TESTSPACKAGE definitions; this has been elided into bsd.tests.mk - Remove unnecessary BINDIRs used previously with ${PACKAGE}FILES; ${PACKAGE}FILESDIR is now automatically defined in bsd.test.mk. - Fix installation of files under data/ subdirectories in lib/libc/tests/hash and lib/libc/tests/net/getaddrinfo - Remove unnecessary .include <bsd.own.mk>s (some opportunistic cleanup) Document the proposed changes in share/examples/tests/tests/... via examples so it's clear that ${PACKAGES}FILES is the suggested way forward in terms of replacing FILES. share/mk/bsd.README didn't seem like the appropriate method of communicating that info. MFC after: never probably X-MFC with: r298107 PR: 209114 Relnotes: yes Tested with: buildworld, installworld, checkworld; buildworld, packageworld Sponsored by: EMC / Isilon Storage Division
* MFHgjb2016-03-101-0/+11
|\ | | | | | | Sponsored by: The FreeBSD Foundation
| * DIRDEPS_BUILD: Connect MK_TESTS.bdrewery2016-03-091-0/+11
| | | | | | | | Sponsored by: EMC / Isilon Storage Division
* | More 'tests' packaging fixes.gjb2016-02-031-1/+5
| | | | | | | | Sponsored by: The FreeBSD Foundation
* | First pass to fix the 'tests' packages.gjb2016-02-021-0/+4
|/ | | | Sponsored by: The FreeBSD Foundation
* Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) andngie2015-10-121-3/+1
| | | | | | | | | | | | netbsd-tests.test.mk (r289151) - Eliminate explicit OBJTOP/SRCTOP setting - Convert all ad hoc NetBSD test integration over to netbsd-tests.test.mk - Remove unnecessary TESTSDIR setting - Use SRCTOP where possible for clarity MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Divison
* Add missing CLEANFILES.bdrewery2015-09-241-0/+2
| | | | | MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
* Add META_MODE support.sjg2015-06-131-0/+18
|\ | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp
| * dirdeps.mk now sets DEP_RELDIRsjg2015-06-081-2/+0
| |
| * Merge from head@274682sjg2014-11-193-46/+38
| |\ | |/ |/|
| * Merge head from 7/28sjg2014-08-1935-15076/+352
| |\
| * | Updated dependenciessjg2014-05-161-1/+0
| | |
| * | Updated dependenciessjg2014-05-101-0/+2
| | |
| * | Merge from headsjg2014-05-081-1/+1
| |\ \
| * \ \ Merge headsjg2014-04-2835-6/+15096
| |\ \ \
| * | | | Updated dependenciessjg2013-03-111-0/+1
| | | | |
| * | | | Updated dependenciessjg2013-02-161-2/+0
| | | | |
| * | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.marcel2012-08-221-0/+19
| | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net>
* | | | | Increase MAXTABLE to the maxmimum possible value. The default value is toojkim2014-11-131-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | low for complex parsers. Note it was one of those memory optimization hacks back in the day. MFC after: 1 week
* | | | | Complete the usr.bin/yacc kyua integration work I originallyngie2014-08-122-43/+34
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | submitted via r268811 - Install the Kyuafile by adding FILES to FILESGROUPS - Run the testcases with an unprivileged user Some of the testcases depend upon behavior that's broken when run as root on FreeBSD because of how permissions are treated with access(2) vs eaccess(2), open(2), etc - Simplify the test driver to just inspect the exit code from run_test because it now exits with 0 if successful and exits with !0 if unsuccessful - Don't do ad hoc temporary directory creation/deletion; let Kyua handle that - Add entries for files removed in r268811 to OptionalObsoleteFiles.inc PR: 191020 X-MFC with: r268811 Approved by: jmmv (mentor) Reviewed by: bapt Sponsored by: EMC / Isilon Storage Division
* | | | Update to byacc 20140715 (only concerns regression tests being fixed)bapt2014-07-1735-15076/+352
| |_|/ |/| | | | | | | | | | | | | | | | | Directly use regression test from upstream PR: 191020 Submitted by: gcooper (yaneurabeya@gmail.com)
* | | Use src.opts.mk in preference to bsd.own.mk except where we need stuffimp2014-05-061-1/+1
| |/ |/| | | | | from the latter.
* | Update to byacc 20140409bapt2014-04-231-4/+2
| | | | | | | | | | | | | | | | Among all the modifications, this new byacc also solves a 14 year old bug [1] PR: bin/23254 [1] Submitted by: marka@nominum.com [1] MFC after: 3 weeks
* | Migrate most of tools/regression/usr.bin/ to the new tests layout.jmmv2014-03-1635-0/+15088
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I'm starting with the easy cases. The leftovers need to be looked at a bit more closely. Note that this change _does_ modify the code of the old tests. This is required in order to allow the code to locate the data files in the source directory instead of the current directory, because Kyua automatically changes the latter to a temporary directory. Also note that at least one test is known to be broken here. Actually, the test is not really broken: it's marked as a TODO but unfortunately Kyua's TAP parser currently does not understand that. Will have to be fixed separately.
* | Add missing bits from the vendor's 2005-05-04 change toobrien2013-12-041-2/+6
| | | | | | | | | | | | | | | | contrib/byacc/makefile.in ("add YYPATCH here so it can be tested by applications") so that applications have a hope of detecting newer FreeBSD YACC output from an older one. Submitted by: Juniper Networks
* | Setting WARNS=6 is useless, as it is already the defaultbapt2013-10-291-1/+0
| | | | | | | | Reported by: Sascha Wildner
* | Change warning level to 6bapt2013-10-291-0/+1
|/
* Import byacc from invisible island, it brings us lots of compatibilities withbapt2012-05-2129-13032/+11
| | | | | | | | | | | | | bison, keeping full compatibility with our previous yacc implementation. Also bring the ability to create reentrant parser This fix bin/140309 [1] PR: bin/140309 [1] Submitted by: Philippe Pepiot <ksh@philpep.org> [1] Approved by: des (mentor) MFC after: 1 month
* Spelling fixes for usr.bin/uqs2011-12-302-2/+4
|
* Remove the advertising clause from UCB copyrighted files in usr.bin. Thisjoel2010-12-1116-64/+2
| | | | | | | | | is in accordance with the information provided at ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change Also add $FreeBSD$ to a few files to keep svn happy. Discussed with: imp, rwatson
* Fix the build on 64-bit hosts. WARNS=6 fails on them.obrien2010-11-091-2/+2
|
* Back out r214961 for skeleton.c -- it broke the groff build.obrien2010-11-081-4/+4
|
* Add '-y' for bison compatibility.obrien2010-11-072-2/+10
| | | | Obtained from: http://invisible-island.net
* Inherit WARNS from parent directory.obrien2010-11-071-2/+0
| | | | Submitted by: marius
* Directly use memory allocation functions and remove needless casts inobrien2010-11-0711-140/+136
| | | | their usage. Also use associated modern types instead of k&r ones.
* Change to ANSI-C function definitions.obrien2010-11-0713-282/+182
|
* Build usr.bin/ with WARNS=6 by default.ed2010-01-021-0/+2
| | | | Also add some missing $FreeBSD$ to keep svn happy.
* Let both yacc and lex generate code that passes -Wold-style-definition.ed2009-12-301-0/+4
| | | | | Both these tools emit code where several functions have no `void' keyword placed in the arugment list when the function has no arguments.
* remove external reference to not (or at least no longer) existing variable ↵rse2009-12-171-1/+0
| | | | 'myname'
* Setting a variable to the same value twice doesn't actually make itcperciva2008-08-041-2/+0
| | | | | | more likely to have the right value. Remove superfluous assignments. Found by: LLVM/Clang Static Checker
* Mark functions as __dead2 in order to help the LLVM static checkercperciva2008-08-041-24/+24
| | | | | | | understand which code paths aren't possible. This commit eliminates 117 false positive bug reports of the form "allocate memory; error out if pointer is NULL; use pointer".
* Indent the else path, reduce diff against OpenBSD.delphij2008-07-181-1/+1
|
* Fix a longstanding bug, from Otto Moerbeck:kevlo2008-07-181-1/+5
| | | | | | | | | if we're reducing a rule that has an empty right hand side and the yacc stackpointer is pointing at the very end of the allocated stack, we end up accessing the stack out of bounds by the implicit $$ = $1 action Obtained from: OpenBSD
* Sort sections.ru2005-01-181-4/+4
|
* Mechanically kill hard sentence breaks.ru2004-07-021-1/+2
|
* Use getopt instead of hand-rolled argument parsing. Usage remainswes2004-03-051-72/+15
| | | | | | | | the same, no man page changes required. PR: bin/48313 Submitted by: Stefan Farfeleder <stefan@fafoe.dyndns.org> Reviewed by: joe@
* Add __unused to the declaration of yyrcsid in a more portable way.davidc2003-02-121-1/+4
| | | | Discussed with: alfred, bde, jmallett, obrien
* Backout my previous commit as requested. This solution generatesdavidc2003-02-081-2/+1
| | | | parsers that are non-portable.
OpenPOWER on IntegriCloud