Commit Graph

280558 Commits

Author SHA1 Message Date
rillig fa00c797c6 make(1): add const for Parse_IsVar 2020-09-06 19:34:36 +00:00
rillig 78cc09048b make(1): add const to For_Eval and For_Accum 2020-09-06 19:30:53 +00:00
rillig 2d9413362f make(1): clean up For_Eval
* Reduce scope of local variables.
* Remove unnecessary null character test before positive isspace call.
2020-09-06 19:28:49 +00:00
rillig 44d49322ad make(1): properly initialize For structure in For_Eval
Initializing a Buffer or a strlist_t with zero-valued bytes only works
by conincidence, but because it would be the correct way.  In the code
path "missing `in' in for", that zero-filled Buffer is freed using
Buf_Destroy, which could have invoked undefined behavior.
2020-09-06 19:24:12 +00:00
rillig 0244d862b4 make(1): improve documentation in For_Eval 2020-09-06 19:19:49 +00:00
rillig 47ba525800 make(1): fix type of For.short_var 2020-09-06 19:18:16 +00:00
ryo 7d4a6eb7ee need swap for aarch64be 2020-09-06 17:43:31 +00:00
ryo e9be9c477e Fix panic caused by modload. http://mail-index.netbsd.org/port-arm/2020/08/30/msg006960.html
The address space reserved for modules may not be mapped in L1-L3.
2020-09-06 17:38:10 +00:00
riastradh 04bc8e9703 uvm/uvm_extern.h, not machine/pmap.h, for pmap(9). Sort includes. 2020-09-06 17:22:44 +00:00
riastradh 541ff757c7 Fix some more uvm header fallout. Add include guards while here. 2020-09-06 17:19:46 +00:00
christos dfab1b7eb2 comment out ioctl that is only defined for the kernel 2020-09-06 17:15:09 +00:00
christos 7c502affd2 fix null argument 2020-09-06 17:06:20 +00:00
christos a2d10af9ab fix zeroing 2020-09-06 16:44:16 +00:00
christos 5ca7119f94 Appease gcc-9 2020-09-06 16:30:41 +00:00
riastradh add6999975 Fix some more uvm.h cleanup fallout. 2020-09-06 15:27:22 +00:00
roy 52732d9dbe Note dhcpcd update 2020-09-06 14:58:53 +00:00
roy 3ace96f44a dhcpcd: Use ppoll(2) 2020-09-06 14:57:18 +00:00
roy 529fe136c2 Sync 2020-09-06 14:55:34 +00:00
roy b4100df48f Update to dhcpcd-9.2.0 with the following changes:
* route: ensure IPv4LL routes come last in priority
 * DHCP: fix many issues with extending the last lease
 * privsep: don't read control group from config in privsep
 * privsep: only the master process responds to signals
 * privsep: use a socketpair for stderr/stdin rather than dupping /dev/null
 * privsep: right limit stdin/stderr/stdout
 * privsep: dumping a lease is now run in a sandbox
 * options: check if kernel supports INET or INET6 before enabling default
 * options: let clientid override a prior duid
 * options: allow -1 to represent infinity for requested lease time
 * dhcpcd: fix a crash initing a new interface after route overflow
2020-09-06 14:54:28 +00:00
mrg 701bf241fe note that aarch64, earm*, sh3*, sparc*, vax, and x86-64 are
slightly updated in status.  x86-64 and sparc and mips64-eb
all appear to work well enough to complete or get well into
an atf run (still going.)

note first ICE segv on sh3
2020-09-06 13:06:03 +00:00
mrg 9e08ce1e4b obsolete gcc-7 dirs. add gcc-9 dirs. 2020-09-06 10:59:51 +00:00
mrg 472eadc88c re-port to netbsd/sparc*
fix build on non-constant pagesize platforms and for dkbad.
2020-09-06 10:55:16 +00:00
mrg 1ef4238e9f mostly support GCC 9 builds. some what tested with GCC 9 but
tested to not break GCC 8 builds for x86, arm*, vax, and sparc*.
2020-09-06 10:54:26 +00:00
mrg 07f014edcb apply ${GCC_NO_FORMAT_TRUNCATION} to scores.c 2020-09-06 10:51:20 +00:00
mrg d2657b0349 build-hash-table.lo and build-vec.lo depend upon $HASH_TABLE_H not $GGC_H 2020-09-06 10:50:53 +00:00
mrg 07acc2d169 forward declare struct vm_page, and include uvm_prot.h and uvm_pmap.h.
fixes build, presumeably after uvm.h external rototill.
2020-09-06 10:48:21 +00:00
mrg 3e250522af remove unused NULL pointer that was passed to printf %s. 2020-09-06 08:18:21 +00:00
mrg d429eca4f6 use struct zero initialiser and avoid calling memset() on a pointer
of the wrong size.
2020-09-06 08:15:04 +00:00
mrg cb93b81028 add support for new GCC 9 warnings that may be too much to fix
right now.  new address-of-packed-member and format-overflow
warnings have new GCC_NO_ADDR_OF_PACKED_MEMBER amd
GCC_NO_FORMAT_OVERFLOW variables to remove these warnings.

apply to a bunch of the tree.  mostly, these are real bugs that
should be fixed, but in many cases, only by removing the 'packed'
attribute from some structure that doesn't really need it.  (i
looked at many different ones, and while perhaps 60-80% were
already properly aligned, it wasn't clear to me that the uses
were always coming from sane data vs network alignment, so it
doesn't seem safe to remove packed without careful research for
each affect struct.)  clang already warned (and was not erroring)
for many of these cases, but gcc picked up dozens more.
2020-09-06 07:20:26 +00:00
mrg 07b516d274 avoid trying to printf() a NULL as %s. fixes likely bug. 2020-09-06 05:31:46 +00:00
mrg eccee43a27 fix merge botch: netbsd doesn't want any of this. 2020-09-06 05:30:17 +00:00
rillig d2ef6c55f3 make(1): add test for the -de option 2020-09-06 04:35:03 +00:00
mrg 30b1a162d1 rework error message to never call printf() %s with NULL. 2020-09-06 02:34:30 +00:00
mrg 32fbe21e0b avoid calling printf() %s with NULL. 2020-09-06 02:34:02 +00:00
mrg 4983628f40 mknative-gcc for gcc 9.3.0 and earmv5*. 2020-09-06 02:25:13 +00:00
mrg 6e26327fd8 pass down earm* not earmv5* to mknative-gcc. 2020-09-06 02:24:38 +00:00
riastradh 0b8d836aa7 Fix fallout from previous uvm.h cleanup.
- pmap(9) needs uvm/uvm_extern.h.

- x86/pmap.h is not usable on its own; it is only usable if included
  via uvm/uvm_extern.h (-> uvm/uvm_pmap.h -> machine/pmap.h).

- Make nvmm.h and nvmm_internal.h standalone.
2020-09-06 02:18:53 +00:00
mrg 45b0095c0d update mknative-gcc status. everything but earmv5 is done, though
few have been tested to actually build yet.
2020-09-05 23:18:49 +00:00
mrg 3d883ed1cc mknative-gcc for gcc 9.3.0 and arm, earmv[467]*, i386, mipseb, mips64*,
and powerpc64.
2020-09-05 23:13:13 +00:00
mrg 79ec32295a don't include vxworks-dummy.h twice 2020-09-05 22:41:17 +00:00
mrg dec7c72467 mknative-gcc for gcc 9.3.0 and arm64, alpha, hppa, ia64, m68*, mipseb,
powerpc, riscv*, sh3*, sparc*, vax.

move data from README.gcc8 to README.gcc9.
2020-09-05 22:16:57 +00:00
jakllsch ea3caf96e6 Fix a broken corner case of strlen()/strnlen() on aarch64eb
Previously a string such as "\x1\x1\x1\x1\x1\x1\x1" would count as
0 instead of 7 on BE.
2020-09-05 20:24:43 +00:00
rillig d908d8a1ee lists/base/mi: fix lines with 4 fields
ok mrg
2020-09-05 19:17:42 +00:00
rillig 000f3267b7 make(1): replay the changes from v1.283
I accidentally reverted them in v1.284.
2020-09-05 19:11:16 +00:00
rillig f31746d78f make(1): clean up comments about parsing 2020-09-05 19:07:25 +00:00
rillig c058562d66 make(1): fix comments about setting .PARSEDIR and .PARSEFILE 2020-09-05 18:41:59 +00:00
rillig 568c2fcd37 make(1): make GetActuallyIncludingFile faster
In deeply nested includes, starting the search from the inner end is
faster since it needs fewer comparisons.
2020-09-05 18:31:03 +00:00
rillig 3dd79b1f4a make(1): fix .INCLUDEDFROMDIR/.INCLUDEDFROMFILE 2020-09-05 18:18:05 +00:00
rillig 118ec9dfc5 make(1): add test for .INCLUDEDFILE combined with .for loops
The .for loops are implemented as a special kind of .include, therefore
they affect the .INCLUDEDFROM variable.
2020-09-05 18:13:47 +00:00
thorpej e446c2af54 Track the SSIR per-cpu, rather than globally. 2020-09-05 18:01:42 +00:00