Commit Graph

286908 Commits

Author SHA1 Message Date
gson
e4942545cb Add support for running individual test cases under isolation. 2021-04-10 10:32:57 +00:00
nia
94b8a1943a 'no merit' is a strong statement 2021-04-10 08:01:21 +00:00
isaki
2786b28adf Fix a wrong description in previous.
MD drivers can support 20 or 24 bits formats even under current MI layer's
constraints.
http://mail-index.netbsd.org/source-changes-d/2021/03/12/msg013255.html
2021-04-10 04:10:21 +00:00
mrg
eca8198938 switch HAVE_GCC=9 to gcc.old. 2021-04-10 00:35:24 +00:00
mrg
c0a68be459 merge GCC 9.3 into gcc.old. 2021-04-09 23:14:15 +00:00
rillig
8ffcb97a78 lint: fix initialization with brace-enclosed string literal
C99 allows this form in 6.7.8p14 and p15.

The previous lint tests did not cover the case of an array at the top
level of the object to be initialized, they only covered the error cases
(d_c99_init.c, variables 'prefixed_message' and 'message_with_suffix').

Lint is now more generous than strictly required by C99, but since GCC
and Clang already cover the case of 'message_with_suffix', this is ok.

The test d_init_array_using_string.c was wrong before in rejecting the
initializer for 'extra_braces'.  I had tested that Clang generated a
warning for this, but I had not inspected its warning carefully enough.
Clang had not warned about the extra braces but only about a type
mismatch since I tested on a platform where wchar_t was 16 bit.
2021-04-09 23:03:26 +00:00
mrg
627f7eb200 second attempt in the right place:
import of GCC 9 into gcc.old in preparation for GCC 10.
2021-04-09 22:32:28 +00:00
rillig
d91573a6c8 tests/lint: demonstrate wrong warning when initializing a string 2021-04-09 22:08:14 +00:00
rillig
c1c59b2873 lint: fix wrong warning about uninitialized _Complex variable
Seen in divxc3.c.
2021-04-09 21:42:12 +00:00
rillig
80108d8526 tests/lint: demonstrate wrong lint warning about complex variables 2021-04-09 21:07:39 +00:00
jkoshy
3d43236771 Avoid duplicate directory traversals when building Elftoolchain sources. 2021-04-09 20:49:05 +00:00
rillig
18955dccde lint: quote placeholders in messages for unused variables 2021-04-09 20:12:00 +00:00
rillig
f9065e3b5b lint: do not warn about pointer conversion to or from incomplete type
This cuts down the warnings in a NetBSD release build by about 38,000.
2021-04-09 20:00:06 +00:00
rillig
0d9b51c034 lint: clean up the check for pointer conversions
No functional change.
2021-04-09 19:52:59 +00:00
rillig
9c458e1376 lint: for structs and unions, include incompleteness in the type name
This mainly helps to assess the situation where lint warns that a
pointer cast "may be troublesome", see msg_247.exp.
2021-04-09 19:37:39 +00:00
rillig
ca178aa822 tests/lint: document where the 38,000 lint warnings come from 2021-04-09 19:32:12 +00:00
christos
a264066ac1 new file(1) 2021-04-09 19:12:37 +00:00
christos
d87b003935 merge local changes between 5.39 and 5.40 and add magic entries from HEAD. 2021-04-09 19:11:41 +00:00
christos
25f16eeab3 2021-03-30 20:21 Christos Zoulas <christos@zoulas.com>
* release 5.40

2021-02-05  16:31  Christos Zoulas <christos@zoulas.com>

	* PR/234: Add limit to the number of bytes to scan for encoding
	* PR/230: Fix /T (trim flag) for regex

2021-02-01  12:31  Christos Zoulas <christos@zoulas.com>
	* PR/77: Trim trailing separator.

2020-12-17  15:44  Christos Zoulas <christos@zoulas.com>

	* PR/211: Convert system read errors from corrupt ELF
	  files into human readable error messages

2020-12-08  16:24  Christos Zoulas <christos@zoulas.com>

	* fix multithreaded decompression file descriptor issue
	  by using close-on-exec (Denys Vlasenko)

2020-06-27  11:58  Christos Zoulas <christos@zoulas.com>

	* Exclude surrogate pairs from utf-8 detection (Michael Liu)

2020-06-25  12:53  Christos Zoulas <christos@zoulas.com>

	* Include # to the list of ignored format chars (Werner Fink)
2021-04-09 18:58:00 +00:00
rillig
1bed9f5334 tests/lint: test bit-shift amount equal to the type's width 2021-04-09 16:37:18 +00:00
rillig
eec39f7564 lint: clean up handling of preprocessing output lines
No functional change.
2021-04-09 15:58:43 +00:00
christos
a31556df76 Don't use a shell pattern to copy files, copy them explicitly. When running
as non-root, [at]*.mk matches archive.mk which we already copied. This was
copied as 444 and trying to overwrite it gives EACCES.
2021-04-09 14:42:00 +00:00
rillig
ee726345e6 lint: in code from included files, print stack trace
Previously, the standard NetBSD build generated several lint warnings in
lhash.h from OpenSSL, without providing any hint as to which file
actually included that header.  In cases like these, lint now interprets
the line number information in the preprocessor output from GCC to
reconstruct the exact include path to the file in question.

The program check-expect.lua had to be rewritten almost completely since
it assumed that all diagnostics would come from the main file.  In all
existing tests, this was true, but these tests did not cover all cases
that occurred in practice.  Now it records the complete location of the
diagnostic instead of just the line number.
2021-04-08 22:18:26 +00:00
jkoshy
53ddd80999 Update Elftoolchain 'common/elfdefinitions.h' to upstream r3943. 2021-04-08 19:37:43 +00:00
rillig
d1643c2c38 tests/lint: refine comment and function name in test for pointer cast
In a typical NetBSD build, there are about 100,000 lint warnings.  About
50,000 of them are warning 247.  About 38,000 of these are from OpenSSL
and may be fixed by now.
2021-04-08 19:31:51 +00:00
rillig
50e0ad27e4 lint: don't warn about cast between pointers to compatible structs 2021-04-08 19:20:54 +00:00
rillig
3f8fd7950d tests/lint: add test for struct pointer cast 2021-04-08 19:08:17 +00:00
christos
2440df942c new services and protocols 2021-04-08 19:06:57 +00:00
christos
637547d0a7 refresh with latest 2021-04-08 19:03:43 +00:00
jdolecek
5a996cdd32 update comment about the 'quirk' in we_mca_init_hook() - actually that is
just interrupt enable bit, so not a quirk at all; NFCI

info passed by Valery Ushakov from a guy running https://www.os2museum.com/wp/
2021-04-08 17:36:33 +00:00
martin
64e2ab0419 Do not pretend we have GHASH asm code 2021-04-08 15:06:50 +00:00
martin
e99a5cc8d0 Add usr/include/elfdefinitions.h and usr/include/sys/elfdefinitions.h 2021-04-08 13:04:01 +00:00
christos
d461bb678c Disable again the assembly version of gcm_ghash_4bit for the 32 bit sparc
since it uses ldx/stx.
2021-04-08 12:31:49 +00:00
jkoshy
d2544b1c1b Redo r1.288: traverse the complete imported Elftoolchain tree during a build. 2021-04-08 08:10:30 +00:00
rillig
dc0342a256 bozohttpd: fix argument type for functions from <ctype.h>
Found by the recently added check to lint (message 342).

ok mrg@
2021-04-08 07:02:11 +00:00
rillig
fb7c930d4d bozohttpd-small: fix typo in SRCS, fix targets dependall and lint
The additional ':' after 'main.c' had no effect on the compilation since
the suffix is removed when computing the list of object files.  The ':'
excluded main.c from the dependency computation and from lint.

By defining CPPFLAGS instead of CFLAGS, the default "-O2" steps in
again, and the proper flags are passed to lint, which did not work
before at all because it could not find an included file.
2021-04-08 06:52:42 +00:00
rillig
b78154bf29 bozohttpd-small: fix error handling for unifdef
The second of the '$$?' was spelled only '$?'.  At the time where this
shell expression was evaluated, it had already been overwritten by the
preceding command '['.
2021-04-08 06:44:55 +00:00
simonb
91ec786cf2 Sort includes. 2021-04-08 06:20:47 +00:00
simonb
0aa6ab471c tc_init(): KASSERT that the timecounter hasn't previously been
initialised by checking the tc_next field.  Prevents nastly endless
loops in the timecounter code.
2021-04-08 06:06:24 +00:00
jkoshy
fea1b4806a Traverse the Elftoolchain 'common' module before
the rest of the imported hierarchy.
2021-04-07 20:32:54 +00:00
jkoshy
90eb0bce92 Ensure that the 'libelf' directory is traversed before 'libdwarf'. 2021-04-07 20:31:16 +00:00
simonb
c84bb8ac7c Update usage message to reflect reality. 2021-04-07 14:45:28 +00:00
simonb
1906696d84 Add a # to a %x printf format to get some 0x hex number prefixes. 2021-04-07 14:27:39 +00:00
nia
35fbfbb85b audiocfg(1): add examples 2021-04-07 09:58:58 +00:00
simonb
a5cb771bc5 Revert the change to not build and install /usr/lib/dtrace/drti.o; this
is used by the ruby30-base package when compiled with the dtrace option
(enabled by default).

Problem found by ryoon@.
2021-04-07 09:57:02 +00:00
nia
95a019acde Update for pkgsrc README.html transition 2021-04-07 07:51:12 +00:00
christos
917f170ea8 bump libevent 2021-04-07 03:45:18 +00:00
christos
2449b34bef new libevent 2021-04-07 03:38:50 +00:00
christos
d74b27c1dc fix incorrect version 2021-04-07 03:38:39 +00:00
christos
7e68cdd730 Merge local changes from libevent 2.1.8 and 2.1.12 2021-04-07 03:36:48 +00:00