Commit Graph

287253 Commits

Author SHA1 Message Date
rillig
66445508cf tests/lint: add test for typeof after statement
Found by christos@.
2021-04-22 22:43:26 +00:00
mrg
7e0fcb8493 arm64eb works. 2021-04-22 20:45:00 +00:00
christos
185787c65b PR/56120: Chris Pinnock: build.sh (-m alpha) release fails on current on
Darwin in libc compilation
We build the regex code in tools without nls. We don't include any nls headers
for that, but on Darwin wint_t gets defined, so we end up with a compilation
error. The cleaner fix would have been to always use regex_foo_t types, but
the minimal fix is to only do this for the tools build, using cpp.
2021-04-22 19:20:24 +00:00
wiz
69305a0d1c cgram: allow providing an input file instead of the random fortune 2021-04-22 14:57:36 +00:00
yamaguchi
a9a3fd4504 Added missing free of sc_hunique to prevent memory leak
when using PPPoE server
2021-04-22 10:26:24 +00:00
mrg
716f126bf9 arm64* now works. (thanks skrll.)
evbarmv5 and evbarmv7hfeb works.  (thanks martin.)
2021-04-22 05:00:35 +00:00
rin
1062ebcd31 Capitalize /EFI and /EFI/NetBSD as usual. Both are case-insensitive although.
Maybe not worth bumping dates...
2021-04-22 01:36:25 +00:00
rin
84148c19da Fix rnd(9) support; events were not sampled actually in the previous.
Remove #if-0'ed and wrap long line for clarity.
2021-04-22 01:33:18 +00:00
rin
7da850018c Apply this fix also for binutils.old.
http://www.nerv.org/netbsd/?q=id:20210422T010948Z.f87d2246188cfedb66a0d5a012c107b6a2b9f395

> Fix regression where ld(1) is trapped into infinite loop when
> linking binary whose text does not fit within R_PPC_REL24.
>
> Reported upstream as Bug 27755:
> https://sourceware.org/bugzilla/show_bug.cgi?id=27755
>
> This problem was introduced to binutils-2-31-1 for our tree.
> netbsd-9 is affected, while netbsd-8 is not.
2021-04-22 01:14:18 +00:00
rin
1c7fbcda57 Fix regression where ld(1) is trapped into infinite loop when
linking binary whose text does not fit within R_PPC_REL24.

Reported upstream as Bug 27755:
https://sourceware.org/bugzilla/show_bug.cgi?id=27755

This problem was introduced to binutils-2-31-1 for our tree.
netbsd-9 is affected, while netbsd-8 is not.
2021-04-22 01:09:48 +00:00
skrll
fd9a2ad443 Do previous differently as the API is different. 2021-04-21 16:23:47 +00:00
christos
a32fdb6548 Put things back, emit.ln it was meant to be there. 2021-04-21 14:04:26 +00:00
christos
2730ab42e6 remove emit.ln; looks like an accident and breaks the build. 2021-04-21 13:41:42 +00:00
rillig
be94027e4e tests/lint: fix the hack for emit.ln to also work if MKUPDATE != "no" 2021-04-21 13:26:16 +00:00
jakllsch
f1bae0bb42 regenerate 2021-04-21 13:12:42 +00:00
jakllsch
e14bb724aa Fix Realtek RTL8125 description 2021-04-21 13:09:33 +00:00
hannken
a2c5994a36 Prevent blocking l2arc_feed_thread() forever, skip the
cv_timedwait() for negative or zero ticks.
2021-04-21 10:02:34 +00:00
ryo
ea089466ac added more attributes of PTE displayed by "ddb>machine pte" 2021-04-21 09:52:20 +00:00
skrll
b5c783f5b6 Provide some more operations that are part of compiler lse.S. This is
incomplete, but at least covers all the atomic_swap ops and allows the
aa64 kernel to link with gcc 10.
2021-04-21 07:31:37 +00:00
rillig
97ccd8d967 tests/lint: fix inconsistent operator for emit.ln
The build failed with:

	nbmake[8]: "/.../src/share/mk/bsd.files.mk" line 47:
	    Inconsistent operator for /.../emit.ln
2021-04-20 23:30:35 +00:00
rillig
296378dbd5 clang: fix build for installing libclang_rt.ubsan_minimal-x86_64.a
The build failed with:

	--- install-ubsan_minimal-m64 ---
	x86_64--netbsd-install: the last argument
	    (/.../libclang_rt.ubsan_minimal-x86_64.a.syms)
	    must name an existing directory

The cause of this is that the suffix transformation rule for .a.a.sym
was active even during 'make install'.

At that point, the make variable .ALLSRC for the target
${DESTDIR}/.../libclang_rt.ubsan_minimal-x86_64.a.sym included not only
the corresponding file from the source directory, but also the potential
source file from the transformation rule, in this case
libclang_rt.ubsan_minimal-x86_64.a.

This led to several file parameters for the command 'install', which is
only allowed if the last parameter names an existing directory.
2021-04-20 23:19:53 +00:00
christos
38e22eb187 Add common attribute 2021-04-20 21:48:39 +00:00
christos
c510facea2 Instead of compiling files with -fcommon, create an include file and declare
the 3 symbols that need to be common using an attribute. Put all the 3 symbol
definitions in libc in one place (initfini.c). Reviewed by joerg@
2021-04-20 21:42:31 +00:00
rillig
105b25615a tests/lint1: fix build error "must name an existing directory"
The build failed with this error message:

	x86_64--netbsd-install: the last argument (/.../emit.ln) must
	name an existing directory

The cause for this message was that ${DESTDIR}/.../emit.ln has
${DESTDIR}/.../emit.c as implicit target, which is kind of correct but
unintended in this case.  Because of this, the command 'install' was run
like this:

	install ${NETBSDSRCDIR}/.../emit.ln ${DESTDIR}/.../emit.c \
	    ${DESTDIR}/.../emit.ln
2021-04-20 21:20:24 +00:00
rillig
e05bae9cb6 tmux: move __printflike to the declaration in the header
Noted by Akihiko HAYASHI.
2021-04-20 17:42:31 +00:00
mrg
307da2e47a give a structure a name.
it makes GCC 10 less unhappy about building arm64 GCC 10.
2021-04-20 10:39:58 +00:00
skrll
b8baaa4b67 KNF 2021-04-20 10:15:34 +00:00
skrll
8272934fce compile fixes 2021-04-20 10:01:37 +00:00
thorpej
37f32593c4 Don't use atomics to manipulate cpu_info::ci_intrdepth: it's modified
only in the interrupt service path by the owning CPU, at entry and exit.
Even if the r/m/w cycle of incrementing the value were interrupted, the
result would still be the same because the interrupting frame will have
completed its own symmetrical increment/decrement cycle upon return.
2021-04-20 01:29:40 +00:00
thorpej
3a56ffacac Slight tweak to previous changes:
Rather than simply increment the interrupt depth for the clock interrupt,
we add 0x10.  Why?  Because while we only use a single Alpha IPL (4) for
IPL_{BIO,NET,TTY,VM}, technically the architecture specification suports
two in the OSF/1 PALcode (3 [low-pri] and 4 [high-pri]), meaning we could
conceiveably have intrdepth > 1 just for device interrupts.

Adding 0x10 here means that cpu_intr_p() can check for "intrdepth != 0" for
"in interrupt context" and CLKF_INTR() can check "(intrdepth & 0xf) != 0" for
"was processing interrupts when the clock interrupt happened".
2021-04-20 00:09:45 +00:00
rillig
24fb524bea make: do not complain when skipping the condition 'no >= 10'
Seen in external/bsd/tmux when building with Clang.  See
varmod-ifelse.mk for the detailed story.
2021-04-19 23:51:42 +00:00
rillig
a12d67d575 tests/make: add another example for parsing of the modifier ':?' 2021-04-19 23:43:14 +00:00
rillig
2427b79c7f tests/make: add detailed explanation for error message in conditional 2021-04-19 23:27:17 +00:00
rillig
97e91d60e6 make: use straight quotes for error 'Bad conditional expression'
This diagnostic was supposed to be an error, see ApplyModifier_IfElse.

When such an error occurs while the makefiles are read, make stops with
an error, as can be expected.  But when such an error occurs later,
after all makefiles have been read, the message is printed but make does
not stop.

In lint mode (-dL), make stops in such a case.  I didn't dare to make
this the default behavior, out of fear of breaking existing build
infrastructure, not only in NetBSD or pkgsrc, but also FreeBSD and other
operating systems that use the bmake distribution, generated from the
same source code.
2021-04-19 22:22:27 +00:00
rillig
d23762c055 tests/make: demonstrate unexpected behavior of the modifier ':?' 2021-04-19 22:05:29 +00:00
rillig
bc7a89052f tmux: fix -Wformat-nonliteral for Clang
dist/control.c:394:17: error: format string is not a string literal
    [-Werror,-Wformat-nonliteral]
        xvasprintf(&s, fmt, ap);
                       ^~~

dist/status.c:436:33: error: format string is not a string literal
    [-Werror,-Wformat-nonliteral]
        xvasprintf(&c->message_string, fmt, ap);
                                       ^~~
2021-04-19 21:52:17 +00:00
christos
f1b2d7493d Fix weekday parsing; only reset the string when parsing fail and only set
the weekday when parsing succeeds (Steffen Nurpmeso)
2021-04-19 17:49:28 +00:00
rillig
9c24f7ff27 make: avoid double slash in name of temporary directory
If the environment variable TMPDIR is not set, make uses a default path
that includes a trailing '/'.

For extra correctness it always appended an extra '/', leading to paths
of the form '/tmp//makeXXXXXX'.  This looked suspicious, as if there had
been a forgotten empty part between the two '/'.  Avoid this ambiguity
by replacing '//' with '/'.
2021-04-19 16:35:11 +00:00
christos
f4a8719e32 new OpenSSH 2021-04-19 14:42:18 +00:00
christos
ad44f2cb8b bump libssh 2021-04-19 14:41:18 +00:00
christos
e8c0841bec Merge local changes between 8.5 and 8.6 2021-04-19 14:40:15 +00:00
christos
d91dbd0bd5 Force user to specify source dir. Too dangerous to run in random places. 2021-04-19 14:07:36 +00:00
rillig
d6126ccc75 lint: add debug logging for reachability 2021-04-19 13:18:43 +00:00
mrg
12037e2a81 hppa switched. sh3el seems ready. m68k atf wasn't fail.. 2021-04-19 08:40:15 +00:00
dholland
bb5b0eea67 Make the riscv disassembler work, as best as I can test from amd64 userspace. 2021-04-19 07:55:59 +00:00
wiz
1f94b32954 openssh-8.6 out 2021-04-19 06:29:13 +00:00
simonb
9eee6d14e7 Add CVS ID line. 2021-04-19 01:12:10 +00:00
rillig
f1cc514d7d tests/lint: record all files from FILES in distrib/sets/lists/tests/mi 2021-04-18 23:05:26 +00:00
rillig
34039a4026 tests/lint: add emit.ln to the release files 2021-04-18 23:02:16 +00:00
rillig
5bf56b009b lint: remove WARNS=3, falling back to the default WARNS=5
It's strange that GCC does not warn about the nonliteral format strings
in lint1/err.c, lint2/msg.c and lint2/read.c, despite -Wformat=2, but
Clang does.
2021-04-18 22:51:24 +00:00