Commit Graph

264004 Commits

Author SHA1 Message Date
plunky
1b44035b06 remove lwresd as now obsolete 2018-12-24 08:31:08 +00:00
mrg
a3748e76bf this works well enough to start and have basic accel only on GTX 750,
so enable those cards.  maybe can enable some pascal cards too.

thanks to fly for fixing nouveau drm2 so it was worth trying :-)
2018-12-24 08:26:04 +00:00
kre
3e31d0bb60 Keep infrastructure setup and only exclude test for non-amd64 case.
Should be final nail in coffin of non-amd64 build failures (ie: Atffile
should get installed where it belongs rather than the root dir).
2018-12-24 05:06:45 +00:00
christos
15936e4a5d only use yydebug if YYDEBUG 2018-12-24 02:58:39 +00:00
christos
887e5ada43 make pcap_debug weak. 2018-12-24 02:39:12 +00:00
christos
2763409dc3 yydebug is now defined only if YYDEBUG is 2018-12-24 02:07:44 +00:00
christos
cc388dc6d9 fix incorrect cast. 2018-12-23 22:14:29 +00:00
jakllsch
f656df6098 Make the /usr/tests/lib/libnvmm directory and testing framework files MI.
Should fix non-amd64 build.
2018-12-23 21:27:45 +00:00
jakllsch
81488cfcef Restore "defs.h", <sys/cdefs.h> #include ordering from before today's
update.  Fixes tools build on, for instance, Linux hosts.
2018-12-23 20:27:23 +00:00
christos
4b0d445835 new binutils is 231 2018-12-23 19:16:43 +00:00
christos
675fce1703 new binutils on head is 231 2018-12-23 19:14:12 +00:00
christos
876968801f yydebug is now available only if YYDEBUG is set. 2018-12-23 19:09:03 +00:00
jakllsch
84cd64698f further build fixes 2018-12-23 16:40:15 +00:00
christos
c6637560b7 new flex 2018-12-23 16:29:10 +00:00
christos
596f930c29 merge conflicts 2018-12-23 16:27:17 +00:00
martin
84df641459 Fix the build 2018-12-23 16:23:24 +00:00
christos
463ae347b3 2017-05-06 Will Estes <westes575@gmail.com>
* po/ca.po, po/da.po, po/de.po, po/eo.po, po/es.po, po/fi.po,
	po/fr.po, po/ga.po, po/hr.po, po/ko.po, po/nl.po, po/pl.po,
	po/pt_BR.po, po/ro.po, po/ru.po, po/sr.po, po/sv.po, po/tr.po,
	po/vi.po, po/zh_CN.po, po/zh_TW.po: gettext: pulled latest
	translations; recompiled against current sources

2017-05-06  Will Estes <westes575@gmail.com>

	* NEWS: version 2.6.4 * NEWS: Record release date.

2017-05-06  Will Estes <westes575@gmail.com>

	* .prev-version: note previous version

2017-05-06  Will Estes <westes575@gmail.com>

	* NEWS: doc: update NEWS for upcoming release

2017-05-04  viktor.shepel <shepelvictor@bigmir.net>

	* doc/flex.texi: doc: Correct typo in C code sample in manual

2017-05-04  Explorer09 <explorer09@gmail.com>

	* src/flex.skl: scanner: Mention %# comments are removed when
	building skel.c

2017-05-02  Demi Obenour <demiobenour@gmail.com>

	* src/flex.skl: Honor user definitions of yy_* macros The user may have defined the yy_* macros themselves.  In that case,
	don't clobber them.

2017-05-02  Demi Obenour <demiobenour@gmail.com>

	* src/flex.skl, src/main.c: Don't leak macro definitions into header
	files This allowed unnamespaced definitions to leak into header files,
	breaking client code.  Fixes #142

2017-05-03  Demi Obenour <demiobenour@gmail.com>

	* src/scan.l: scanner: Check for 0 bracecount when EOL ends quoted
	literal.  This can happen in the case of // comments (which Flex doesn't
	handle specially).

2017-05-03  Demi Obenour <demiobenour@gmail.com>

	* src/scan.l: scanner: when bracelevel is negative, treat as zero.  This really should never happen, but this at least fixes the
	breakage on Verilator.

2017-04-02  Jeff Smith <whydoubt@gmail.com>

	* tests/Makefile.am, tests/tableopts.am, tests/tableopts.sh: test:
	enable more silent building of tests.  When running 'make V=0 check', some compile and link steps are made
	less verbose and some are not.  This cleans up most steps that are
	not.  These have no effect if V=0 is not specified.

2017-05-03  Demi Obenour <demiobenour@gmail.com>

	* src/Makefile.am, src/misc.c, src/mkskel.sh: build: Delete comments
	from skeleton file.  Since the comments in flex.skl are, by hypothesis, not needed in
	skel.c, we remove them. THis reduces the size of the resulting
	executable somewhat.

2017-05-03  Explorer09 <explorer09@gmail.com>

	* Makefile.am, configure.ac, lib/Makefile.am: build: do not generate
	lib/Makefile.in.  Files in lib/ are picked up and built using makefile directives in
	src/Makefile.am. Remove the need to generate lib/Makefile.in and the
	stub lib/Makefile.am.

2017-05-02  Will Estes <westes575@gmail.com>

	* po/POTFILES.in: gettext: revert listing generated .c files

2017-04-10  Jeff Smith <whydoubt@gmail.com>

	* src/filter.c: FLEX_EXIT() is the preferred way to exit flex

2017-04-11  Explorer09 <explorer09@gmail.com>

	* src/misc.c: Fix myesc() 'sptr' conditionals * Don't call isascii() here. It's deprecated in POSIX and not needed   for myesc's case.  * The check of the character class and range here should match
	  what's defined as {ESCSEQ} in scan.l, so for [[:xdigit:]] we use
	  isxdigit(); for [0-7] we check '0' <= c <= '7' (not isdigit(c)
	  because isdigit is locale-dependant in standard's sense) * Add missing length limit for "\x<hex>" (<hex> is at most 2 digits)

2017-04-11  Explorer09 <explorer09@gmail.com>

	* src/flexdef.h, src/misc.c: Obsolete htoui() and otoui(); use
	strtoul().  No sense to keep these two function when libc's strtoul() can do the
	same job, but better.

2017-04-12  Todd C. Miller <Todd.Miller@courtesan.com>

	* src/flex.skl: scanner: update yy_buf_size after yyrealloc()

2017-05-02  Simon Sobisch <simonsobisch@web.de>

	* configure.ac: build: use lowest versions for gettext, automake.

2017-05-02  Simon Sobisch <simonsobisch@web.de>

	* po/Makevars, po/Rules-getpo, po/update_linguas.sh: gettext: more
	recent makevars; new script to update po files.  Previously, "make dist" and similar commands would cause the po
	files to be updated, which is incorrect. The more recent version now
	used should not do this.  Replaced Rules-getpo by extra script to manually update and rebuild
	all po files.

2017-05-02  Simon Sobisch <simonsobisch@web.de>

	* po/POTFILES.in: gettext: list generated files instead of flex,
	bison sources in POTFILES.in.  Listing the flex and bison sources -- as the gettext manual suggests
	-- causes warnings. Listing the generated C files for the lexer and
	parser removes the warnings. Since both files contain line
	directives, any translator who needs to refer back to those files
	should be able to find the context in which strings are needed.

2017-05-02  Simon Sobisch <simonsobisch@web.de>

	* autogen.sh: build: only touch ChangeLog if it does not exist

2017-05-02  Simon Sobisch <simonsobisch@web.de>

	* configure.ac, doc/Makefile.am: build: list earliest useable
	versions for automake

2017-05-02  Simon Sobisch <simonsobisch@web.de>

	* autogen.sh: build: check for how to call libtoolize.  Previously, we would call libtoolize and if that failed, we would
	call glibtoolize since some platforms have the libtoolize program
	under that name.  Instead, we check to see if the environment variable LIBTOOLIZE is
	set and use that if so. Otherwise, we try to find a program
	"libtoolize" on the path and failing that glibtoolize. We alert the
	user if no suitable program can be found.

2017-01-06  Alastair Hughes <hobbitalastair@gmail.com>

	* configure.ac, m4/ax_prog_cc_for_build.m4, src/Makefile.am: build:
	support cross compiling.  Check for cross compiling. If cross compiling, build stage1flex
	using a custom link command.  We also override LDADD since that adds
	the replacement implementations that are cross compiled, and instead
	always use the replacement library implementations.  We don't use BUILD_OBJEXT and BUILD_EXEEXT since it seems that
	automake does not support these.  Fixes #78.

2017-02-17  Explorer09 <explorer09@gmail.com>

	* configure.ac, src/flexdef.h: build: Include <strings.h>; add
	strcasecmp() check to configure.  strings.h (not string.h) is the standard-defined include header for
	strcasecmp(). Include <strings.h> for portability (even though glibc
	exposes strcasecmp() declaration also in <string.h> by default).

2017-02-17  Explorer09 <explorer09@gmail.com>

	* configure.ac, src/flexdef.h: build: Let configure error if missing
	required functions, headers..  `configure` will now error if a required header or function is not
	found on the system.  Also add comments on optional functions checks.  Add sys/stats.h and sys/wait.h to list of required headers in
	configure.  This fixes issue #180.

2017-02-12  Explorer09 <explorer09@gmail.com>

	* src/dfa.c, src/flexdef.h: scanner: compute powers of two faster.  Replace the naive "for" loop in determining power of two with a
	clever bitwise solution. This code is around the Internet already
	and is in Public Domain.

2017-02-07  Explorer09 <explorer09@gmail.com>

	* configure.ac, tests/Makefile.am, tests/pthread.l: test: skip
	pthread test when needed files missing.  "Unlisting" the pthread test when libpthread is not available is
	never a good idea. Should let it compile into a stub program that
	returns the "skip" status.  configure.ac and tests/Makefile.am are edited so that pthread test
	can be built anyway, but only works (not as the stub) when both
	pthread.h and libpthread are detected on the system.  Also fix a small typo in tests/pthread.l comments.

2017-02-16  Will Estes <westes575@gmail.com>

	* src/Makefile.am: build: mv scan.c when building dist.  Revert change to copy scan.c when building the distribution archive.
	Move it instead. This satisfies automake's notions of what should be
	clean and ensures that the distribution archive contains a
	just-built copy of scan.c.  Fixes #186

2017-02-06  Will Estes <westes575@gmail.com>

	* src/Makefile.am: build: don't assume distdir/scan.c is writeable

2017-01-02  Explorer09 <explorer09@gmail.com>

	* src/Makefile.am: build: Add dist-hook to force remake scan.c.  This will ensure the flex scanner included in release tarball being
	generated by exactly the flex version to be released.  Here's one catch after this change: You may not run "make dist" or
	"make distdir" if you configure the flex source to be
	cross-compiled.

2017-01-02  Explorer09 <explorer09@gmail.com>

	* src/Makefile.am: build: respect '--localedir' from configure.  Makefile shouldn't overwrite the 'localedir' variable, because
	that's what '--localedir' option in 'configure' is for.

2017-01-02  Explorer09 <explorer09@gmail.com>

	* src/Makefile.am: build: Remove "-I$(top_srcdir)/intl" from
	CPPFLAGS.  Revert commit e02c3d27eeb6b53ec82532ab080c23ce26813fd4 ("include the intl/ subdirectory when searching for include files") Flex doesn't come with libintl source code, so inclusion of
	$(top_srcdir)/intl subdirectory during compiling is unnecessary.  This flag seems to be left after "remove intl from dist" (commit
	8f45da06adbd7dbcdfdbdd5c20ff4c47fc504f35) without someone cleaning
	this up.  Users who need to build with gettext functionality from libintl
	would use the '--with-libintl-prefix' configure option.

2017-02-03  Explorer09 <explorer09@gmail.com>

	* src/regex.c: scanner: fix regcomp's error reporting, double
	malloc.  Fix unneeded double malloc - let regerror(). Write its message after
	our "regcomp for (regex) failed: " string.  Also, errbuf cannot be free()'d because of flexfatal containing a
	longjmp.

2017-01-03  Explorer09 <explorer09@gmail.com>

	* tests/Makefile.am, tests/no_bison_stub.c: test: Skip bison tests
	if bison is not available

2017-01-03  Explorer09 <explorer09@gmail.com>

	* configure.ac: build: remove repeated bison detection from
	configure.  AC_PROG_YACC already detects the bison program. We can just use it,
	and make notice if [ $YACC != 'bison -y' ] Remove unused AC_SUBST([BISON], ...).  Add AM_CONDITIONAL([HAVE_BISON], ...) so that we can skip bison
	tests in testsuite when bison is absent.  We don't make any attempt to detect other yacc implementations since
	flex is developed with bison. While it would be possible, the need
	isn't there right now. It would be possible to add a --with-parser
	option that defaulted to bison if such a need cropped up.

2017-01-01  Explorer09 <explorer09@gmail.com>

	* src/Makefile.am: build: fix Makefile parse.h dependency clauses.  The current clauses stating "main.c: parse.h" and "yylex.c: parse.h"
	do not work as expected. Make did not try to build parse.h upon
	building flex-main.o as it would think main.c exist already and
	ignore the clause. Fix this by explicitly stating that the .o files
	depend on parse.h instead.  This dependency bug only happens if user builds flex from a
	checked-out repository.

2017-01-03  Explorer09 <explorer09@gmail.com>

	* tests/Makefile.am: test: Remake *_scanner.c if *_scanner.h is
	missing.  If a ${foo}_scanner.c exists but the respective ${foo}_scanner.h is
	missing, then 'make' can halt. Fix this by deleting the
	${foo}_scanner.c file and then remake it. This rule is the same as
	the automake-generated rule for .c files that require LEX or YACC
	(except automake will use ylwrap).

2016-12-31  Explorer09 <explorer09@gmail.com>

	* tests/Makefile.am: test: remove BUILT_SOURCES; add missing
	dependencies.  Without BUILT_SOURCES in Makefile, no test sources in tests/ will be
	built when using the default "make all" target. This is desireable
	for people who are just building flex but who do not want to run,
	and therefore, build any part of the test suite.  Also fix missing sources dependencies:     bison_nr_scanner.$(OBJEXT): bison_nr_parser.h     bison_yylloc_scanner.$(OBJEXT): bison_yylloc_parser.h     bison_yylval_scanner.$(OBJEXT): bison_yylval_parser.h

2017-01-19  Explorer09 <explorer09@gmail.com>

	* configure.ac, lib/reallocarray.c, src/flexint.h, src/misc.c:
	build: detect overflow for [re]allocate_array.  Use reallocarray() when we have it (i.e. in OpenBSD system). When we
	don't, use equivalent overflow detection for our allocate_array and
	reallocate_array functions.  Remove lib/reallocarray.c from our LIBOBJS as we no longer need it.  Provide a fallback SIZE_MAX macro definition in flexint.h (not
	preprocessor friendly, but enough for our reallocate_array use
	case).

2017-01-23  Will Estes <westes575@gmail.com>

	* NEWS, configure.ac: doc: v2.6.4

2017-01-23  Thomas Klausner <wiz@NetBSD.org>

	* src/Makefile.am: build: more BSD make and vpath build fixes.  BSD make doesn't like $< with more than one source specified.
	Additionally, make sure to specify srcdir when referring to source
	files since vpath builds depend on this.

2017-01-22  Thomas Klausner <wiz@NetBSD.org>

	* src/Makefile.am: build: Fix skel.c generation with BSD make

2017-01-22  Christos Zoulas <christos@zoulas.com>

	* src/flex.skl: Add more defines in the non-reentrant part.  Fix the reentrant part; don't "#define yyfoo yyfoo" because it
	breaks code that does #ifndef yywrap ..

2017-01-22  Christos Zoulas <christos@zoulas.com>

	* src/flexdef.h: scanner: Add yyparse prototype

2017-01-22  Thomas Klausner <wiz@NetBSD.org>

	* src/flex.skl: scanner: move comment for consistency

2017-01-22  Christos Zoulas <christos@zoulas.com>

	* src/misc.c: scanner: Use array instead of pointer

2017-01-22  Christos Zoulas <christos@zoulas.com>

	* src/main.c: scanner: manage path to m4 better.  Avoid alloca() for SSP; it is better anyway; since we don't need to
	strdup the path.

2017-01-22  Christos Zoulas <christos@zoulas.com>

	* src/gen.c: scanner: Avoid creating unused label

2017-01-22  Christos Zoulas <christos@zoulas.com>

	* src/buf.c: Cast argument to avoid arithmetic on void *.

2017-01-22  Christos Zoulas <christos@zoulas.com>

	* src/scan.l: scanner: Use strncpy

2017-01-22  Christos Zoulas <christos@zoulas.com>

	* src/main.c: scanner: Use prefix when defining yywrap to avoid
	redefinition.  Fixes regression introduced in v2.6.3.

2017-01-22  Christos Zoulas <christos@zoulas.com>

	* src/flexdef.h, src/misc.c: scanner: Include stdarg.h for va_list

2017-01-22  Christos Zoulas <christos@zoulas.com>

	* src/flexdef.h, src/main.c, src/parse.y: scanner: Rename warn to
	lwarn.  This avoids a naming conflict in NetBSD's  libc.

2017-01-01  Explorer09 <explorer09@gmail.com>

	* tests/README: test: document automake convention for skipped exit
	status.

2017-01-03  Explorer09 <explorer09@gmail.com>

	* tests/Makefile.am: test: let testwrapper scripts be run by
	${SHELL}.  This allows user to use a different shell if /bin/sh has problems.
	The use of $SHELL (variable) to run scripts is already an Automake
	convention. All shell scripts in build-aux are run by $SHELL.

2017-01-02  Explorer09 <explorer09@gmail.com>

	* tests/options.cn, tests/tableopts.sh,
	tests/testwrapper-direct.sh, tests/testwrapper.sh: test: Remove test
	scripts bashisms.  They now all work under a POSIX compliant sh. Specifically, 'dash'
	can now be used for running "make check" tests.  Note that none of these scripts has ever been using a pipe, so `set
	-o pipefail` is unnecessary and removed.

2017-01-02  Explorer09 <explorer09@gmail.com>

	* tests/testwrapper.sh: test: exit on '-1' test non-zero status.  If a '-1' test program returns a non-zero status, don't go further
	and compare it's (numeric) output values. This allows a '-1' test to
	indicate a "skip" status or an otherwise error. (Currently no such
	'-1' test would skip like this, though.) Shell syntax note: `set -e` will not exit with the syntax like this
	`test $(false) = $(false);`. The exit statuses of `false` in the
	example will be ignored instead. But putting the output in a
	variable, such as `VAR=$(false)`, DOES exit.

2017-01-02  Explorer09 <explorer09@gmail.com>

	* Makefile.am, src/Makefile.am: build: Fix 'make indent' target This 'make indent' target has not been working since the directories
	reorganization in flex 2.6.0. Now make it work again.  Note that the current indent profile breaks many styles of existing
	code. The indent target should not be used until the .indent.pro
	options are reviewed for desireability.

2017-01-01  Explorer09 <explorer09@gmail.com>

	* configure.ac: build: Simplify indent program detection

2017-01-12  Tobias Klauser <tklauser@distanz.ch>

	* src/filter.c: filter: Don't emit #line if %option noline set One place emitting a #line directive to the generated header was
	missed in commit 647a92b9f4 when resolving #55. Fix it to respect
	gen_line_dirs as well.

2017-01-12  Will Estes <westes575@gmail.com>

	* po/ca.po, po/da.po, po/de.po, po/eo.po, po/es.po, po/fi.po,
	po/fr.po, po/ga.po, po/hr.po, po/ko.po, po/nl.po, po/pl.po,
	po/pt_BR.po, po/ro.po, po/ru.po, po/sr.po, po/sv.po, po/tr.po,
	po/vi.po, po/zh_CN.po, po/zh_TW.po: translation: refresh po files
	from translation project

2017-01-10  Harald van Dijk <harald@gigawatt.nl>

	* src/flex.skl: c++: Fix yyrestart(NULL) SEGV.  Binding a reference to a dereferenced null pointer is invalid and
	compilers optimise away the &file == 0 check. We need a real stream.  yyin is available already, and yyrestart(NULL) is only supported
	when yyin will not be used, so there is no harm in just passing in
	that.  Since we now always have a valid stream, we can skip the null
	check too.  Fixes #98.

2017-01-09  luistung <dongliang1986@gmail.com>

	* src/scan.l: scanner: join symbol list.  Removed a newline that caused a problem building the scanner in some
	circumstances. Specifically: 'bad character' error  when executing /bin/sh ../build-aux/ylwrap scan.l lex.yy.c scan.c -- flex

2017-01-11  Will Estes <westes575@gmail.com>

	* src/flex.skl: scanner: remove void cast before fprintf
2018-12-23 15:57:53 +00:00
jakllsch
1192b45e7e Add /usr/tests/lib/libnvmm and related debug paths to the directory list. 2018-12-23 15:43:42 +00:00
christos
6a16fa5ef4 new byacc 2018-12-23 15:40:30 +00:00
christos
f884e6e1cd merge conflicts 2018-12-23 15:38:53 +00:00
christos
2a64c2b767 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, 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/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_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/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.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/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.
2018-12-23 15:26:12 +00:00
maxv
9159f72fc2 Add initial tests for libnvmm's Mem Assist, with 8 test cases. 2018-12-23 13:35:02 +00:00
jmcneill
dd9342cc70 Use ___STRING instead of __STRING to expand driver version numbers properly 2018-12-23 12:32:33 +00:00
maxv
9a1e316930 Add /dev/nvmm. 2018-12-23 12:18:30 +00:00
maxv
807789b5ca Simplify the KASAN API, use only kasan_mark() and explain briefly. The
alloc/free naming was too confusing.
2018-12-23 12:15:01 +00:00
jdolecek
af6ab60528 whitespace, NFC 2018-12-23 12:11:40 +00:00
bouyer
3ee4e48c8e Cleanup the TX path:
- split in sub-functions
- ratelimit printf for mbuf allocation failure
- don't loop forever on mbuf allocation failure
2018-12-23 12:09:45 +00:00
skrll
c1c5485a0c Appease clang. Tested by roy. 2018-12-23 11:45:39 +00:00
maxv
d176722e97 Remove useless debugging code, the area is completely filled but it's not
checked afterwards, only pi_magic is.
2018-12-23 11:42:13 +00:00
gutteridge
6326f9f26c Clarify a sentence about the error handling of cp(1)'s -p option.
Addresses PR bin/40336.
2018-12-23 01:29:23 +00:00
sevan
3565873c1f Bump dtc & dts versions available upstream. 2018-12-23 01:24:54 +00:00
christos
375c9b773b add missing quotes 7 2018-12-22 21:53:06 +00:00
cherry
c11ea41900 Introduce a weak alias method of exporting different implementations
of the same API.

For eg: the amd64 native implementation of invlpg() now becomes
amd64_invlpg() with a weak symbol export of invlpg(), while the XEN
implementation becomes xen_invlpg(), also weakly exported as invlpg()

Note that linking in both together without having an override function
named invlpg() would be a mistake, as we have limited control over
which of the two options would emerge as the finally exported invlpg()
resulting in a potential situation where the wrong function is finally
exported. This change avoids this situation.

We should however include an override function invlpg() in that case,
such that it is able to then pass on the call to the appropriate
backing function (amd64_invlpg() in the case of native, and
xen_invlpg() in the case of under XEN virtualisation) at runtime.

This change does not introduce such a function and therefore does not
alter builds to include native as well as XEN implementations in the
same binary. This will be done later, with the introduction of XEN
PVHVM mode, where precisely such a runtime switch is required.

There are no operational changes introduced by this change.
2018-12-22 21:27:22 +00:00
roy
d1aef43780 remove needless parens, makes clang happy 2018-12-22 20:57:44 +00:00
christos
26c46ba85b use the proper rcsid for the kernel 2018-12-22 20:49:19 +00:00
christos
3f44874742 - add rcsid
- don't define DEBUG
- protect function used in KASSERT with DIAGNOSTIC not DEBUG
2018-12-22 20:49:04 +00:00
rin
b7832e8766 Fix previous; We also need to turn off IFF_ALLMULTI bit when
it is disabled.
2018-12-22 16:58:51 +00:00
maxv
a4c7369382 Update the man page, we don't want M_COPY_PKTHDR, M_MOVE_PKTHDR, MH_ALIGN
and M_ALIGN.
2018-12-22 14:39:46 +00:00
maxv
5b040abec8 Replace M_ALIGN and MH_ALIGN by m_align. 2018-12-22 14:28:56 +00:00
maxv
7971121357 Replace: M_COPY_PKTHDR -> m_copy_pkthdr. No functional change, since the
former is a macro to the latter.
2018-12-22 14:07:53 +00:00
maxv
fc568a6805 Move m_align() back into the kernel, and switch M_ALIGN and MH_ALIGN to it.
Forcing a distinction between M_ALIGN and MH_ALIGN is too bug-friendly and
serves no particular purpose.
2018-12-22 13:55:56 +00:00
maxv
b1305a6d63 Replace: M_MOVE_PKTHDR -> m_move_pkthdr. No functional change, since the
former is a macro to the latter.
2018-12-22 13:11:37 +00:00
maxv
c8899fa5b4 In the end, disable the supposed architectural SpectreV2 mitigation on
AMD f12h and f16h. The SDMs of these CPUs haven't been updated since, and
we shouldn't assume the position of the bits, we just can't know where
they are.

Initially I included f12h and f16h because f10h is actually documented
to have a bit to disable the indirect branch predictor, and there were
patches available in SuSE and CentOS that were treating f10h/f12h/f16h
all the same. Knowing that SuSE has ties with AMD, it seemed safe to
assume that these patches were correct and that f12h and f16h could
indeed be treated the same way as f10h.

But these patches have now disappeared, and the main Linux branch
doesn't have them, without clear explanation. Therefore, I prefer to
roll-back.
2018-12-22 10:00:39 +00:00
maxv
25b05d090c Add AMD_SSB_NO, so that we explicitly say than an AMD CPU is not affected
when it's not affected.
2018-12-22 09:20:30 +00:00
maxv
c629ba0747 If the CPU is not vulnerable to SpectreV4, say it in the sysctl by default.
Apply some minor style while here.
2018-12-22 08:59:44 +00:00
maxv
64b14b7616 Style, once again. 2018-12-22 08:35:04 +00:00
cherry
3355a42f38 This change modifies the mainbus(4) entry point for all x86 sub-archs
in the following way:

i) It provides a unified entry point in
   x86/x86/mainbus.c:mainbus_attach()
ii) It carves out the preliminary bus attachment sequence that is
   common to all sub-archs into
   x86/x86/mainbus.c: x86_cpubus_attach()
iii) It consolidates the remaining pathways as internal callee
   functions so that these may be called piecemeal if required. A
   special usecase of this is XEN PVHVM which may need to call the
   native configure path, the xen configure path, or both.
iv) It moves the driver private data structures from
   i386/i386_mainbus.c to an x86/ level one. This allows for other
   sub-arch's to do similar, if needed. (They do not at the moment).
v) For dom0 kernels, it enables 'acpi0 at mainbus?' and
   'acpi0 at hypervisorbus'. This serves two purposes:
   a) To demonstrate the possibility of dynamic configuration tree
      traversal ordering changes.
   b) To allow for the common acpi_check(self, "acpibus") call in
   x86/mainbus.c to not barf when it is called from the dom0 attach
   path. We allow for the acpi0 device to be a child of mainbus with
   the changes to amd64/conf/XEN3_DOM0 and i386/conf/XEN3PAE_DOM0
   without actually probing further in the code. This path will later
   be pursued in a PVHVM boot codepath.

There should be no operative changes with this change. If there are,
please complain loudly.
2018-12-22 07:45:58 +00:00
cherry
962a684e71 Don't forget pedigree. Re-introduce old RCS Id tags from the originals 2018-12-22 06:59:27 +00:00
cherry
7bd4c28f54 Move mainbus(4) driver files in various x86 sub-archs to name prefixed
versions. This allows us to further modularise them by unifying common
bus probe code in x86/x86/mainbus.c to  be introduced next.

This commit has no functional changes. It is done for ease of
visibility of newer diffs in the queue.
2018-12-22 06:33:36 +00:00
rin
b6dd10ff85 Take the interface out of promiscuous mode in bridge_delete_member()
instead of bridge_ioctl_del(). Otherwise, the member interfaces are
left in promiscuous mode when the bridge is destroyed.
2018-12-22 04:28:30 +00:00