CVS commit: [thorpej-cfargs] src/sys/arch/cobalt/conf

2021-03-20 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Sat Mar 20 23:50:16 UTC 2021

Modified Files:
src/sys/arch/cobalt/conf [thorpej-cfargs]: files.cobalt

Log Message:
There is no need to have the "pcibus" interface attribute on mainbus;
PCI bus instances to not attach there.


To generate a diff of this commit:
cvs rdiff -u -r1.41 -r1.41.16.1 src/sys/arch/cobalt/conf/files.cobalt

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.bin/seq

2021-03-20 Thread Aleksey Cheusov
Module Name:src
Committed By:   cheusov
Date:   Sat Mar 20 22:10:17 UTC 2021

Modified Files:
src/usr.bin/seq: seq.c

Log Message:
seq.c: replace non-standard `\e` with standard compliant `\x1B`


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/usr.bin/seq/seq.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.bin/xlint/lint1

2021-03-20 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Mar 20 21:08:10 UTC 2021

Modified Files:
src/usr.bin/xlint/lint1: tree.c

Log Message:
lint: clean up new_name_node

No functional change.


To generate a diff of this commit:
cvs rdiff -u -r1.241 -r1.242 src/usr.bin/xlint/lint1/tree.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.bin/xlint/lint1

2021-03-20 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Mar 20 20:56:58 UTC 2021

Modified Files:
src/usr.bin/xlint/lint1: op.h oper.c print.c tree.c

Log Message:
lint: move getopname over to tree.c

Except for the one use in print_tnode, the name of the operator is only
used in tree.c.

No functional change.


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/usr.bin/xlint/lint1/op.h
cvs rdiff -u -r1.8 -r1.9 src/usr.bin/xlint/lint1/oper.c
cvs rdiff -u -r1.10 -r1.11 src/usr.bin/xlint/lint1/print.c
cvs rdiff -u -r1.240 -r1.241 src/usr.bin/xlint/lint1/tree.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: [thorpej-cfargs] src/sys/arch

2021-03-20 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Sat Mar 20 20:49:43 UTC 2021

Modified Files:
src/sys/arch/hpcmips/dev [thorpej-cfargs]: plum.c plumiobus.c ucb1200.c
src/sys/arch/hpcmips/tx [thorpej-cfargs]: tx39sib.c tx39spi.c
tx39uart.c txcsbus.c txsim.c
src/sys/arch/hpcmips/vr [thorpej-cfargs]: vrc4173bcu.c vrip.c
src/sys/arch/mips/rmi [thorpej-cfargs]: rmixl_mainbus.c

Log Message:
Don't pass the autoconfig print routine as the aux pointer to the
indirect search routine.  That argument slot is meant for "attach
args" structures, not function pointers.  Besides, no one actually
used it anyway.


To generate a diff of this commit:
cvs rdiff -u -r1.18.2.1 -r1.18.2.2 src/sys/arch/hpcmips/dev/plum.c
cvs rdiff -u -r1.16.2.1 -r1.16.2.2 src/sys/arch/hpcmips/dev/plumiobus.c
cvs rdiff -u -r1.19.52.1 -r1.19.52.2 src/sys/arch/hpcmips/dev/ucb1200.c
cvs rdiff -u -r1.21.52.1 -r1.21.52.2 src/sys/arch/hpcmips/tx/tx39sib.c
cvs rdiff -u -r1.5.52.1 -r1.5.52.2 src/sys/arch/hpcmips/tx/tx39spi.c
cvs rdiff -u -r1.15.52.1 -r1.15.52.2 src/sys/arch/hpcmips/tx/tx39uart.c
cvs rdiff -u -r1.22.52.1 -r1.22.52.2 src/sys/arch/hpcmips/tx/txcsbus.c
cvs rdiff -u -r1.17.52.1 -r1.17.52.2 src/sys/arch/hpcmips/tx/txsim.c
cvs rdiff -u -r1.24.28.1 -r1.24.28.2 src/sys/arch/hpcmips/vr/vrc4173bcu.c
cvs rdiff -u -r1.37.52.1 -r1.37.52.2 src/sys/arch/hpcmips/vr/vrip.c
cvs rdiff -u -r1.4.68.1 -r1.4.68.2 src/sys/arch/mips/rmi/rmixl_mainbus.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: [thorpej-cfargs] src/sys

2021-03-20 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Sat Mar 20 20:47:53 UTC 2021

Modified Files:
src/sys/arch/arm/xscale [thorpej-cfargs]: pxa2x0.c
src/sys/arch/zaurus/dev [thorpej-cfargs]: zssp.c
src/sys/dev/gpio [thorpej-cfargs]: gpio.c

Log Message:
No need to pass the parent softc down to the indirect submatch routine;
it's available from the parent device_t there.


To generate a diff of this commit:
cvs rdiff -u -r1.22.52.1 -r1.22.52.2 src/sys/arch/arm/xscale/pxa2x0.c
cvs rdiff -u -r1.13.62.1 -r1.13.62.2 src/sys/arch/zaurus/dev/zssp.c
cvs rdiff -u -r1.64.10.1 -r1.64.10.2 src/sys/dev/gpio/gpio.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.bin/xlint/lint1

2021-03-20 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Mar 20 20:39:35 UTC 2021

Modified Files:
src/usr.bin/xlint/lint1: main1.c op.h oper.c ops.def tree.c

Log Message:
lint: remove redundant operator properties table

It's enough to have modtab, which describes the properties of the
various operators.  There is no need to have a second table imods that
holds the same content.  Rather make modtab constant as well.

The only possible functional change is that the names of the internal
operators 'no-op', '++', '--', 'real', 'imag' and 'case' may appear in
diagnostics, where previously lint invoked undefined behavior by passing
a null pointer for a '%s' conversion specifier.


To generate a diff of this commit:
cvs rdiff -u -r1.37 -r1.38 src/usr.bin/xlint/lint1/main1.c
cvs rdiff -u -r1.14 -r1.15 src/usr.bin/xlint/lint1/op.h
cvs rdiff -u -r1.7 -r1.8 src/usr.bin/xlint/lint1/oper.c
cvs rdiff -u -r1.18 -r1.19 src/usr.bin/xlint/lint1/ops.def
cvs rdiff -u -r1.239 -r1.240 src/usr.bin/xlint/lint1/tree.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.bin/xlint/lint1

2021-03-20 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Mar 20 20:15:37 UTC 2021

Modified Files:
src/usr.bin/xlint/lint1: op.h oper.c ops.def

Log Message:
lint: fix argument names and table headings for operator definitions

The abbreviations in the table of operator properties had been wrong
since ops.def 1.10 from 2021-01-12, when strict bool mode was added.  In
an earlier working draft, I had named that column 'takes_others' instead
of 'requires_bool', that's where the 'o' came from.

The names of the macro arguments had been wrong since op.h 1.11 from
2021-01-09, when the order of the columns changed and the macros were
not adjusted accordingly.  Since all the properties of the operator
table are uniform, this didn't result in any bugs, it was just confusing
for human readers.

Clang-tidy suggests to enclose the macro arguments in oper.c in
parentheses but that is not possible since the arguments are either
empty or 1, and the syntactical ambiguity of the '+ 0' being either a
unary or a binary operator is needed here.

No change to the resulting binary.


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/usr.bin/xlint/lint1/op.h
cvs rdiff -u -r1.6 -r1.7 src/usr.bin/xlint/lint1/oper.c
cvs rdiff -u -r1.17 -r1.18 src/usr.bin/xlint/lint1/ops.def

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: [thorpej-cfargs] src/sys

2021-03-20 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Sat Mar 20 19:33:42 UTC 2021

Modified Files:
src/sys/arch/acorn32/eb7500atx [thorpej-cfargs]: rsbus.c
src/sys/arch/acorn32/mainbus [thorpej-cfargs]: pioc.c
src/sys/arch/amiga/amiga [thorpej-cfargs]: autoconf.c
src/sys/arch/amiga/clockport [thorpej-cfargs]: clockport.c
src/sys/arch/amigappc/amigappc [thorpej-cfargs]: autoconf.c
src/sys/arch/arm/at91 [thorpej-cfargs]: at91bus.c at91pio.c
src/sys/arch/arm/broadcom [thorpej-cfargs]: bcm53xx_ccb.c
src/sys/arch/arm/ep93xx [thorpej-cfargs]: epgpio.c epsoc.c
src/sys/arch/arm/gemini [thorpej-cfargs]: gemini_gmac.c gemini_lpc.c
gemini_obio.c
src/sys/arch/arm/imx [thorpej-cfargs]: imx23_ahb.c imx23_apbh.c
imx23_apbx.c imx23_usb.c imx31_ahb.c imx31_aips.c imx51_axi.c
imx51_usb.c
src/sys/arch/arm/iomd [thorpej-cfargs]: vidc20.c
src/sys/arch/arm/ixp12x0 [thorpej-cfargs]: ixpsip.c
src/sys/arch/arm/mainbus [thorpej-cfargs]: mainbus.c
src/sys/arch/arm/mpcore [thorpej-cfargs]: mpcore_axi.c mpcore_pmr.c
src/sys/arch/arm/omap [thorpej-cfargs]: omap2_gpmc.c omap2_l3i.c
omap2_obio.c omap_emifs.c omap_ocp.c omap_tipb.c omapl1x_tipb.c
src/sys/arch/arm/s3c2xx0 [thorpej-cfargs]: s3c2410.c s3c2410_extint.c
s3c2410_spi.c s3c2440.c s3c2440_extint.c s3c2440_i2s.c
s3c2440_spi.c s3c2800.c
src/sys/arch/arm/sa11x0 [thorpej-cfargs]: sa11x0.c
src/sys/arch/arm/xscale [thorpej-cfargs]: becc.c ixp425_ixme.c
ixp425_npe.c ixp425_sip.c pxa2x0.c
src/sys/arch/arm/zynq [thorpej-cfargs]: zynq_axi.c
src/sys/arch/atari/atari [thorpej-cfargs]: autoconf.c
src/sys/arch/atari/vme [thorpej-cfargs]: vme.c
src/sys/arch/cesfic/cesfic [thorpej-cfargs]: autoconf.c
src/sys/arch/cobalt/cobalt [thorpej-cfargs]: mainbus.c
src/sys/arch/dreamcast/dev/g1 [thorpej-cfargs]: g1bus.c
src/sys/arch/dreamcast/dev/g2 [thorpej-cfargs]: g2bus.c
src/sys/arch/epoc32/epoc32 [thorpej-cfargs]: external.c internal.c
src/sys/arch/evbarm/adi_brh [thorpej-cfargs]: obio.c
src/sys/arch/evbarm/g42xxeb [thorpej-cfargs]: gb225.c obio.c
src/sys/arch/evbarm/gumstix [thorpej-cfargs]: gxio.c
src/sys/arch/evbarm/hdl_g [thorpej-cfargs]: obio.c
src/sys/arch/evbarm/ifpga [thorpej-cfargs]: ifpga.c
src/sys/arch/evbarm/iq80310 [thorpej-cfargs]: obio.c
src/sys/arch/evbarm/iq80321 [thorpej-cfargs]: obio.c
src/sys/arch/evbarm/iyonix [thorpej-cfargs]: obio.c
src/sys/arch/evbarm/lubbock [thorpej-cfargs]: obio.c sacc_obio.c
src/sys/arch/evbarm/tsarm [thorpej-cfargs]: tspld.c
src/sys/arch/evbsh3/evbsh3 [thorpej-cfargs]: mainbus.c
src/sys/arch/hp300/dev [thorpej-cfargs]: hpib.c
src/sys/arch/hp300/hp300 [thorpej-cfargs]: autoconf.c
src/sys/arch/hpcarm/dev [thorpej-cfargs]: ipaq_atmelgpio.c ipaq_saip.c
j720ssp.c nbppcon.c sacc_hpcarm.c uda1341.c
src/sys/arch/hpcmips/dev [thorpej-cfargs]: plum.c plumiobus.c ucb1200.c
src/sys/arch/hpcmips/hpcmips [thorpej-cfargs]: mainbus.c
src/sys/arch/hpcmips/tx [thorpej-cfargs]: tx39sib.c tx39spi.c
tx39uart.c txcsbus.c txsim.c
src/sys/arch/hpcmips/vr [thorpej-cfargs]: vrc4173bcu.c vrip.c
src/sys/arch/hpcsh/hpcsh [thorpej-cfargs]: mainbus.c
src/sys/arch/i386/pnpbios [thorpej-cfargs]: pnpbios.c
src/sys/arch/iyonix/iyonix [thorpej-cfargs]: obio.c
src/sys/arch/landisk/dev [thorpej-cfargs]: obio.c
src/sys/arch/mac68k/mac68k [thorpej-cfargs]: mainbus.c
src/sys/arch/mac68k/obio [thorpej-cfargs]: obio.c
src/sys/arch/mips/ralink [thorpej-cfargs]: ralink_mainbus.c
src/sys/arch/mips/rmi [thorpej-cfargs]: rmixl_iobus.c rmixl_mainbus.c
rmixl_obio.c rmixl_usbi.c
src/sys/arch/mips/sibyte/dev [thorpej-cfargs]: sbgbus.c
src/sys/arch/mipsco/obio [thorpej-cfargs]: obio.c
src/sys/arch/mmeye/mmeye [thorpej-cfargs]: mainbus.c
src/sys/arch/news68k/dev [thorpej-cfargs]: hb.c
src/sys/arch/news68k/news68k [thorpej-cfargs]: mainbus.c
src/sys/arch/newsmips/dev [thorpej-cfargs]: hb.c
src/sys/arch/next68k/dev [thorpej-cfargs]: intio.c
src/sys/arch/next68k/next68k [thorpej-cfargs]: mainbus.c
src/sys/arch/playstation2/dev [thorpej-cfargs]: sbus.c
src/sys/arch/playstation2/playstation2 [thorpej-cfargs]: mainbus.c
src/sys/arch/powerpc/booke/dev [thorpej-cfargs]: pq3etsec.c pq3obio.c
src/sys/arch/prep/pnpbus [thorpej-cfargs]: pnpbus.c
src/sys/arch/rs6000/mca [thorpej-cfargs]: ioplanar.c
src/sys/arch/sandpoint/sandpoint [thorpej-cfargs]: eumb.c
src/sys/arch/sgimips/gio [thorpej-cfargs]: gio.c
src/sys/arch/sgimips/ioc [thorpej-cfargs]: ioc.c
src/s

CVS commit: src/usr.bin/xlint/lint1

2021-03-20 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Mar 20 19:33:25 UTC 2021

Modified Files:
src/usr.bin/xlint/lint1: Makefile lex.c oper.c

Log Message:
lint: make lint's own code pass the strict bool mode

No functional change.


To generate a diff of this commit:
cvs rdiff -u -r1.62 -r1.63 src/usr.bin/xlint/lint1/Makefile
cvs rdiff -u -r1.13 -r1.14 src/usr.bin/xlint/lint1/lex.c
cvs rdiff -u -r1.5 -r1.6 src/usr.bin/xlint/lint1/oper.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.bin/xlint/lint1

2021-03-20 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Mar 20 19:24:57 UTC 2021

Modified Files:
src/usr.bin/xlint/lint1: lex.c

Log Message:
lint: use macro for initializing keywords table

Since today, lint's strict bool mode requires initializers to have the
correct type.  The flags in kwtab are of type bool and were initialized
with an int, for brevity.  Keep the brevity and do the conversion from
int to bool in a macro.

By defining several macros for the different kinds of keywords, reduce
the clutter of having 2 additional zeroes per line.  The macros also
remove the redundancy and thereby the possible inconsistency of filling
the wrong fields since these depend on the token type.

No functional change.  The only change to the binary is due to the
changed line numbers in the calls to lint_assert.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/usr.bin/xlint/lint1/lex.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.bin/xlint/common

2021-03-20 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Mar 20 18:59:00 UTC 2021

Modified Files:
src/usr.bin/xlint/common: inittyp.c

Log Message:
lint: use macro for encoding type information

In lint's strict bool mode, initialization must be of the correct type.
This affects the bool fields in ttab_t, which are initialized with int.
To keep the code brief, preserve these ints and let a macro do the
actual work of converting them to bool.

No change to the generated binary.


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/usr.bin/xlint/common/inittyp.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.bin/xlint/lint1

2021-03-20 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Mar 20 18:38:25 UTC 2021

Modified Files:
src/usr.bin/xlint/lint1: tree.c

Log Message:
lint: inline access to type properties in check_bad_enum_operation

No functional change.


To generate a diff of this commit:
cvs rdiff -u -r1.238 -r1.239 src/usr.bin/xlint/lint1/tree.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src

2021-03-20 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Mar 20 17:18:50 UTC 2021

Modified Files:
src/tests/usr.bin/xlint/lint1: d_c99_bool_strict.c
d_c99_bool_strict.exp
src/usr.bin/xlint/lint1: tree.c

Log Message:
lint: in strict bool mode, check initialization as well

C99 6.7.8p11 says for initialization that "the same type constraints and
conversions as for simple assignments apply", so actually apply them.
(I had just forgotten this "operator" when I first implemented strict
bool mode.)


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/tests/usr.bin/xlint/lint1/d_c99_bool_strict.c
cvs rdiff -u -r1.19 -r1.20 \
src/tests/usr.bin/xlint/lint1/d_c99_bool_strict.exp
cvs rdiff -u -r1.237 -r1.238 src/usr.bin/xlint/lint1/tree.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/usr.bin/xlint/lint1

2021-03-20 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Mar 20 17:08:08 UTC 2021

Modified Files:
src/tests/usr.bin/xlint/lint1: d_c99_bool_strict.c

Log Message:
tests/lint: test initialization in strict bool mode

I somehow forgot to list INIT as one of the operators in
is_assignment_bool_or_other.


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/tests/usr.bin/xlint/lint1/d_c99_bool_strict.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.bin/xlint/lint1

2021-03-20 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Mar 20 16:16:32 UTC 2021

Modified Files:
src/usr.bin/xlint/lint1: cgram.y externs1.h func.c

Log Message:
lint: rename ftflg to seen_fallthrough

One less abbreviation to remember when reading the code.

No functional change.


To generate a diff of this commit:
cvs rdiff -u -r1.187 -r1.188 src/usr.bin/xlint/lint1/cgram.y
cvs rdiff -u -r1.79 -r1.80 src/usr.bin/xlint/lint1/externs1.h
cvs rdiff -u -r1.77 -r1.78 src/usr.bin/xlint/lint1/func.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.bin/xlint/lint1

2021-03-20 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Mar 20 16:11:12 UTC 2021

Modified Files:
src/usr.bin/xlint/lint1: cgram.y

Log Message:
lint: make the calls to clear_warning_flags stand out less

Even though clear_warning_flags and its companions are implemented as
macros, they act like ordinary functions.  Do not distract the reader by
using uppercase names for them.

No functional change.


To generate a diff of this commit:
cvs rdiff -u -r1.186 -r1.187 src/usr.bin/xlint/lint1/cgram.y

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.bin/xlint/lint1

2021-03-20 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Mar 20 15:30:58 UTC 2021

Modified Files:
src/usr.bin/xlint/lint1: cgram.y

Log Message:
lint: clean up grammar for declaration after statement

No functional change.


To generate a diff of this commit:
cvs rdiff -u -r1.185 -r1.186 src/usr.bin/xlint/lint1/cgram.y

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src

2021-03-20 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Mar 20 15:28:07 UTC 2021

Modified Files:
src/tests/usr.bin/xlint/lint1: msg_327.c msg_327.exp
src/usr.bin/xlint/lint1: cgram.y

Log Message:
lint: fix check for declaration after statement in pre-C99 mode

The new code may not be the most beautiful, but it fixes all bugs that
occurred while testing message 327.  The grammar rules are taken from
C99 6.8.2, so it's no surprise they work well.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/tests/usr.bin/xlint/lint1/msg_327.c
cvs rdiff -u -r1.3 -r1.4 src/tests/usr.bin/xlint/lint1/msg_327.exp
cvs rdiff -u -r1.184 -r1.185 src/usr.bin/xlint/lint1/cgram.y

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/aarch64

2021-03-20 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Sat Mar 20 14:30:50 UTC 2021

Modified Files:
src/sys/arch/aarch64/aarch64: locore.S pmapboot.c
src/sys/arch/aarch64/include: pmap.h

Log Message:
Make pmapboot_enter panic if anything goes wrong and any mappings overlap
rather than only doing it in locore.S


To generate a diff of this commit:
cvs rdiff -u -r1.76 -r1.77 src/sys/arch/aarch64/aarch64/locore.S
cvs rdiff -u -r1.15 -r1.16 src/sys/arch/aarch64/aarch64/pmapboot.c
cvs rdiff -u -r1.45 -r1.46 src/sys/arch/aarch64/include/pmap.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.bin/cmp

2021-03-20 Thread Aleksey Cheusov
Module Name:src
Committed By:   cheusov
Date:   Sat Mar 20 14:27:47 UTC 2021

Modified Files:
src/usr.bin/cmp: cmp.c

Log Message:
cmp.c: use C99 strtoll(3) instead of legacy strtoq(3)


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/usr.bin/cmp/cmp.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src

2021-03-20 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Mar 20 14:17:56 UTC 2021

Modified Files:
src/tests/usr.bin/xlint/lint1: msg_327.c msg_327.exp
src/usr.bin/xlint/lint1: cgram.y err.c

Log Message:
lint: properly name C99 in message about declaration after statement

Now that C99 has been released and published, there is no reason anymore
to refer to it as C9X.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/tests/usr.bin/xlint/lint1/msg_327.c
cvs rdiff -u -r1.2 -r1.3 src/tests/usr.bin/xlint/lint1/msg_327.exp
cvs rdiff -u -r1.183 -r1.184 src/usr.bin/xlint/lint1/cgram.y
cvs rdiff -u -r1.88 -r1.89 src/usr.bin/xlint/lint1/err.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/usr.bin/xlint/lint1

2021-03-20 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Mar 20 14:13:51 UTC 2021

Modified Files:
src/tests/usr.bin/xlint/lint1: msg_327.c msg_327.exp

Log Message:
tests/lint: add test for declaration after statement


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/tests/usr.bin/xlint/lint1/msg_327.c
cvs rdiff -u -r1.1 -r1.2 src/tests/usr.bin/xlint/lint1/msg_327.exp

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.bin/xlint/lint1

2021-03-20 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Mar 20 13:53:28 UTC 2021

Modified Files:
src/usr.bin/xlint/lint1: cgram.y

Log Message:
lint: use proper boolean literals instead of 0/1

The code in the C grammar is generated by yacc and is not checked by
lint's strict bool mode, therefore the replacement was done manually.

No change to the resulting change.


To generate a diff of this commit:
cvs rdiff -u -r1.182 -r1.183 src/usr.bin/xlint/lint1/cgram.y

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.bin/xlint/lint1

2021-03-20 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Mar 20 13:25:31 UTC 2021

Modified Files:
src/usr.bin/xlint/lint1: decl.c

Log Message:
lint: update comment on setasm for C99

No functional change.


To generate a diff of this commit:
cvs rdiff -u -r1.151 -r1.152 src/usr.bin/xlint/lint1/decl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.bin/xlint/lint1

2021-03-20 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Mar 20 13:22:06 UTC 2021

Modified Files:
src/usr.bin/xlint/lint1: decl.c

Log Message:
lint: reduce indentation and braces in merge_type_specifiers

No functional change.


To generate a diff of this commit:
cvs rdiff -u -r1.150 -r1.151 src/usr.bin/xlint/lint1/decl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.bin/xlint/lint1

2021-03-20 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Mar 20 13:06:05 UTC 2021

Modified Files:
src/usr.bin/xlint/lint1: decl.c

Log Message:
lint: extract adjusting of the storage class into separate function

No functional change.


To generate a diff of this commit:
cvs rdiff -u -r1.149 -r1.150 src/usr.bin/xlint/lint1/decl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.bin/xlint/lint1

2021-03-20 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Mar 20 13:00:43 UTC 2021

Modified Files:
src/usr.bin/xlint/lint1: lint1.h

Log Message:
lint: document the struct for declarations more precisely

No functional change.


To generate a diff of this commit:
cvs rdiff -u -r1.75 -r1.76 src/usr.bin/xlint/lint1/lint1.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.bin/xlint/lint1

2021-03-20 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Mar 20 11:33:50 UTC 2021

Modified Files:
src/usr.bin/xlint/lint1: cgram.y

Log Message:
lint: remove unnecessary '%prec T_COMMA' from grammar

My previous commit message was wrong in saying that the '%prec' was
necessary.  It is not necessary.

Most probably I misspelled the name of the grammar rule as opt_comma
instead of comma_opt, which would lead to the same number of conflicts
in the grammar plus a warning, but no build failure.


To generate a diff of this commit:
cvs rdiff -u -r1.181 -r1.182 src/usr.bin/xlint/lint1/cgram.y

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src

2021-03-20 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Mar 20 11:24:49 UTC 2021

Modified Files:
src/tests/usr.bin/xlint/lint1: d_c99_compound_literal_comma.c
src/usr.bin/xlint/lint1: cgram.y

Log Message:
lint: join grammar rules for initialization

The '%prec T_COMMA' is necessary to avoid lots of parse errors in the
lint1 unit tests.  Curiously, further down in the grammar, for compound
literals, the '%prec T_COMMA' is not necessary, even though the context
looks very similar.

No functional change.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 \
src/tests/usr.bin/xlint/lint1/d_c99_compound_literal_comma.c
cvs rdiff -u -r1.180 -r1.181 src/usr.bin/xlint/lint1/cgram.y

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.bin/xlint/lint1

2021-03-20 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Mar 20 11:05:16 UTC 2021

Modified Files:
src/usr.bin/xlint/lint1: cgram.y

Log Message:
lint: fix grammar for initialization

Previously, the grammar syntactically accepted the following code:

int var = .member = 12345;

The designation '.member =' can only be used with brace-enclosed
initializers.


To generate a diff of this commit:
cvs rdiff -u -r1.179 -r1.180 src/usr.bin/xlint/lint1/cgram.y

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.bin/xlint/lint1

2021-03-20 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Mar 20 10:32:43 UTC 2021

Modified Files:
src/usr.bin/xlint/lint1: cgram.y

Log Message:
lint: align rule names in grammar with C99

No functional change.


To generate a diff of this commit:
cvs rdiff -u -r1.178 -r1.179 src/usr.bin/xlint/lint1/cgram.y

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/usr.bin/xlint/lint1

2021-03-20 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Mar 20 08:59:46 UTC 2021

Modified Files:
src/tests/usr.bin/xlint/lint1: d_c99_init.c

Log Message:
tests/lint: add more tests for initialization, based on C99 6.7.8


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/tests/usr.bin/xlint/lint1/d_c99_init.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src

2021-03-20 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Mar 20 08:54:27 UTC 2021

Modified Files:
src/tests/usr.bin/xlint/lint1: d_c99_init.c d_c99_init.exp
src/usr.bin/xlint/lint1: init.c

Log Message:
lint: fix assertion failure after error in designation

In d_c99_init.c, the initialization of array_with_designator failed.
The designator '.member' from that initialization was not cleaned up
before starting the next initialization.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/tests/usr.bin/xlint/lint1/d_c99_init.c
cvs rdiff -u -r1.8 -r1.9 src/tests/usr.bin/xlint/lint1/d_c99_init.exp
cvs rdiff -u -r1.107 -r1.108 src/usr.bin/xlint/lint1/init.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src

2021-03-20 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Mar 20 08:16:30 UTC 2021

Modified Files:
src/tests/usr.bin/xlint/lint1: d_c99_init.c
src/usr.bin/xlint/lint1: init.c

Log Message:
lint: replace segmentation fault with assertion failure


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/tests/usr.bin/xlint/lint1/d_c99_init.c
cvs rdiff -u -r1.106 -r1.107 src/usr.bin/xlint/lint1/init.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.