Commit Graph

287216 Commits

Author SHA1 Message Date
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
rillig
4b2703ba02 lint: fix strict bool mode errors in cgram.y
The code generated by yacc already adheres to strict bool mode, in
default mode as well as in debug mode.

Running lint on the generated cgram.c as well avoids most of the
"declared but not used" warnings from lint2.

The code generated by lex does not adhere to strict bool mode though.
Suppressing the errors from strict bool mode works, but then lint1 runs
into an assertion failure:

	assertion "tn != NULL || nerr != 0" failed
	    in expr at tree.c:3610 near scan.c:822

This leaves several warnings about "declared but not used" for the
functions from lex.c.
2021-04-18 21:53:37 +00:00
rillig
063d68d52b lint: reduce duplicate code for parsing .ln files 2021-04-18 21:12:50 +00:00
rillig
8edef9ff6a lint: fix error message in lint2 for missing record type in .ln file 2021-04-18 20:40:51 +00:00
skrll
eea8ca29ae Switch hppa to gcc 10 2021-04-18 20:32:49 +00:00
rillig
fd674c8ffb lint: clean up option parsing 2021-04-18 20:15:17 +00:00
rillig
3f5e7494f3 lint: test emitting of symbol information in the .ln files
Even though the new test is quite large, it didn't find any bugs in the
code.  The only thing I'm unsure about is why static functions are
exported as well, since they are supposed to be local to the translation
unit.
2021-04-18 20:02:56 +00:00
maya
1b70e4604b The -n flag is useless with -g, don't mention it.
From rudolf in PR misc/36243
2021-04-18 19:56:09 +00:00
rillig
9941f15572 lint: rename parameter to expr
That parameter used to be used for a single purpose, later it got used
for checking the reachability as well, which made the name misleading.
2021-04-18 17:54:33 +00:00
rillig
dd5ca14fc1 lint: remove redundant CONSTCOND
In do-while-0 loops, these are no longer needed since tree.c 1.202 from
2021-01-31.
2021-04-18 17:47:32 +00:00
rillig
6de49ab08a lint: pass pos_t via const pointer
Thanks for the suggestion, christos@.
2021-04-18 17:36:18 +00:00
christos
c745c111da fix the 32 bit build (I guess the authors don't have any 32 bit machines
anymore)
2021-04-18 14:01:29 +00:00
simonb
5e7c17c576 Delete the NOFPU option. These CPUs do have an FPU. Allows o32
binaries to work now.
2021-04-18 12:05:29 +00:00
mrg
a757c29eb3 enable a few more "generic" items in this configuration, mostly
from what pmax GENERIC enables, but not nearly all of it:

- enable OVERLAY, UMAPFS, FDESC, LFS, UNION, PUFFS (and putter),
  and add some more commented out entries
- enable DISKLABEL_EI and FFS_EI
- turn on GATEWAY and ppp(4) options
- add commented ALTQ section
2021-04-18 10:45:22 +00:00
mrg
99583ae326 move softint_cleanup, which is a part of softint_fast_dispatch(),
into the section of code known as softint_fast_dispatch().

previous:

db> x/i softint_cleanup
netbsd:cpu_switchto+0xd4:       ld      t0,0(t8)

except that cpu_switchto() ends at cpu_switchto+0xd0.

now:

db> x/i softint_cleanup
netbsd:softint_fast_dispatch+0xa4:      ld      t0,0(t8)


tested on OCTEON.
2021-04-18 10:40:34 +00:00
rillig
e87d5ae6f7 lint: rename parameter to diagnostic functions and macros
The first parameter is not just an arbitrary number, it's a message ID.
2021-04-18 10:09:49 +00:00
rillig
bc66c81fb4 lint: align the member access macros for tnode_t 2021-04-18 10:04:23 +00:00
rillig
2e8075d978 lint: flip parameters in verror_at, vwarning_at, vmessage_at
The parameters are in the same order now as in the corresponding macros.
2021-04-18 10:02:16 +00:00
rillig
06b9102e6b lint: extend documentation about handling initializations 2021-04-18 09:53:03 +00:00
rillig
0fa816d74c lint: remove redundant test for tflag in initialization handling 2021-04-18 09:50:00 +00:00
rillig
1afc787893 lint: migrate global_clean_up_decl to warning_at 2021-04-18 09:39:53 +00:00
rillig
381fecf673 lint: preserve curr_pos when checking whether a symbol is used
At the end of a function definition (funcend), curr_pos was not
restored, probably because the very next action is to read the next
token, which will then set curr_pos.

Again, this may affect the location reported in assertion failures,
everything else is unchanged.
2021-04-18 09:37:18 +00:00
rillig
7dcdec7722 lint: do not modify curr_pos in check_global_symbols
No functional change.
2021-04-18 09:20:43 +00:00
rillig
4dc66409e9 lint: in check_global_variable_size, restore curr_pos
This affects only calls to lint_assert, all other code stays
functionally the same.
2021-04-18 09:15:16 +00:00
rillig
b9784b3ffa lint: migrate check_tag_usage to warning_at
This one is already a little trickier since it does not restore the
original curr_pos.  This function is only called in a few places, and
these either restore curr_pos themselves or only call functions
afterwards that immediately overwrite curr_pos.

Except for lint_assert, which may now report a different location.

The call to check_global_variable that is related to check_tag_usage was
the function that started this whole refactoring since its lint_assert
reported a completely wrong location when using a compound literal in an
initializer expression at block level 0.
2021-04-18 09:07:36 +00:00
rillig
ef084fd475 lint: migrate print_previous_declaration to message_at 2021-04-18 08:57:57 +00:00
rillig
152aae6b2f lint: migrate the getopt check to warning_at 2021-04-18 08:53:35 +00:00
rillig
1052a4a017 lint: add error_at, warning_at, message_at
Right now there are several places in the code that use the global
variable curr_pos for passing a parameter to the diagnostic functions.
That's not what global variables are for.

Make it easy for the code to migrate to the parameter-passing style.

No functional change.
2021-04-18 08:52:04 +00:00
rillig
48ee035ba0 lint: do not allow the diagnostics to be modified 2021-04-18 08:07:04 +00:00
rillig
fb2cd55871 tests/lint: remove work-in-progress code
The only purpose of the additional initializers was to generate an error
message, to make the .exp file non-empty.  This is no longer needed.
2021-04-18 08:03:56 +00:00
rillig
1cf5b1560c lint: fix storage class of compound literal in initializer
A compound literal that occurs at block_level 0 does not have storage
class AUTO.  Instead, its storage class is either EXTERN or STATIC.

While removing the temporary objects from the symbol table had prevented
the assertion, it did not properly fix the underlying problem, which was
that since C99 the initializers can contain references to unnamed
objects that are created on-the-fly.  For C90 it was correct to always
use AUTO as the storage class of a temporary symbol.
2021-04-18 08:00:13 +00:00
rillig
73b70e7b0b lint: document wrong location information in diagnostics 2021-04-18 07:31:47 +00:00
mrg
d3874c24e6 don't provide db_lstacktrace() for crash (yet?). 2021-04-18 01:28:50 +00:00
mrg
e2d256dc93 db_lstacktrace() can't use db_stacktrace_print and log() directly.
log() takes a 'int level' first argument, that must be supplied.
add an inline wrapper that calls vlog() with LOG_INFO, and the
supplied va_list.

(not noticed because this macro is not used anywhere in src but
i have a use in some uncommited code, that now failed to compile.)
2021-04-18 01:05:23 +00:00
mrg
6b7734269e arm64-gcc10 can run atf fine (with a GCC 9 kernel.) 2021-04-17 22:03:57 +00:00
mrg
05211fa483 it's spelled aarch64eb. now aarch64eb userland builds, too.
update arm64 status (kernels still need new libkern help.)
2021-04-17 22:01:02 +00:00
mrg
2d63425964 avoid redefinition warning for __OPTIMIZE_SIZE__. 2021-04-17 21:43:47 +00:00
mrg
4312dbe036 fix error in previous: UVMHIST_PDHIST_SIZE needs to stay next to pdhistbuf[]. 2021-04-17 21:37:21 +00:00