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

2021-08-17 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue Aug 17 22:29:11 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: main1.c Log Message: lint: extract suppress_messages from main No functional change. To generate a diff of this commit: cvs rdiff -u -r1.55 -r1.56 src/usr.bi

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

2021-08-17 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue Aug 17 21:19:02 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: main1.c Log Message: lint: sync usage message with reality To generate a diff of this commit: cvs rdiff -u -r1.54 -r1.55 src/usr.bin/xlint/lint1/main1.c Plea

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

2021-08-17 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue Aug 17 21:05:34 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: main1.c Log Message: lint: move GCC builtins into gcc_builtins No functional change. To generate a diff of this commit: cvs rdiff -u -r1.53 -r1.54 src/usr.bi

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

2021-08-16 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Aug 16 18:51:03 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: remove dead code from check_bad_enum_operation There is a single caller of that function, and it checks the exact same condition befo

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

2021-08-10 Thread Roland Illig
Module Name:src Committed By: rillig Date: Wed Aug 11 05:37:45 UTC 2021 Modified Files: src/usr.bin/xlint/lint2: main2.c Log Message: lint: add reminder to sort the output of lint2 To generate a diff of this commit: cvs rdiff -u -r1.17 -r1.18 src/usr.bin/xlint/lint2/main

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

2021-08-10 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue Aug 10 19:52:14 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: decl.c Log Message: lint: remove redundant test for negative bit-field size A bit-field can never have negative size. Its type is an unsigned integer. Strang

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

2021-08-10 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue Aug 10 17:57:16 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: mem1.c Log Message: lint: remove redundant function prototypes To generate a diff of this commit: cvs rdiff -u -r1.48 -r1.49 src/usr.bin/xlint/lint1/mem1.c P

CVS commit: src/usr.bin/xlint

2021-08-10 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue Aug 10 17:31:44 UTC 2021 Modified Files: src/usr.bin/xlint/common: lint.h src/usr.bin/xlint/lint1: mem1.c src/usr.bin/xlint/lint2: externs2.h Log Message: lint: clean up comments To generate a diff of this co

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

2021-08-10 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue Aug 10 16:59:28 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: ops.def Log Message: lint: fix documentation of FARG and PUSH To generate a diff of this commit: cvs rdiff -u -r1.22 -r1.23 src/usr.bin/xlint/lint1/ops.def P

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

2021-08-10 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue Aug 10 07:02:00 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: ops.def Log Message: lint: document the difference between FARG and PUSH To generate a diff of this commit: cvs rdiff -u -r1.21 -r1.22 src/usr.bin/xlint/lint1

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

2021-08-09 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue Aug 10 06:31:16 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: ops.def Log Message: lint: document operator properties directly at the definition To generate a diff of this commit: cvs rdiff -u -r1.20 -r1.21 src/usr.bin/x

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

2021-08-09 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Aug 9 21:27:20 UTC 2021 Modified Files: src/usr.bin/xlint/xlint: xlint.c Log Message: lint: remove commented-out preprocessor options These have been commented out since 2002. To generate a diff of this commit: cvs rdiff -

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

2021-08-09 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Aug 9 20:52:24 UTC 2021 Modified Files: src/usr.bin/xlint/xlint: pathnames.h Log Message: lint: remove unused pathname To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/usr.bin/xlint/xlint/pathnames.h Please

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

2021-08-08 Thread Thomas Klausner
Module Name:src Committed By: wiz Date: Sun Aug 8 16:53:54 UTC 2021 Modified Files: src/usr.bin/xlint/xlint: lint.1 Log Message: Fix Dd argument. To generate a diff of this commit: cvs rdiff -u -r1.46 -r1.47 src/usr.bin/xlint/xlint/lint.1 Please note that diffs are not

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

2021-08-08 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Aug 8 16:19:18 UTC 2021 Modified Files: src/usr.bin/xlint/xlint: xlint.c Log Message: lint: group global variables by the subprocess No functional change. To generate a diff of this commit: cvs rdiff -u -r1.70 -r1.71 src/u

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

2021-08-08 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Aug 8 16:11:08 UTC 2021 Modified Files: src/usr.bin/xlint/xlint: xlint.c Log Message: lint: rename list_free to list_clear The previous name suggested that the function would free the list itself, which it doesn't. To gene

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

2021-08-08 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Aug 8 15:59:32 UTC 2021 Modified Files: src/usr.bin/xlint/xlint: lint.1 Log Message: lint: update and proofread manual page To generate a diff of this commit: cvs rdiff -u -r1.45 -r1.46 src/usr.bin/xlint/xlint/lint.1 Pleas

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

2021-08-08 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Aug 8 15:29:24 UTC 2021 Modified Files: src/usr.bin/xlint/xlint: lint.1 xlint.c Log Message: lint: remove dead code for reading from stdin Since xlint.c 1.27 from 2002-01-31, it has not been possible to read from stdin anymo

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

2021-08-08 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Aug 8 15:06:44 UTC 2021 Modified Files: src/usr.bin/xlint/xlint: xlint.c Log Message: lint: inline list_add_defines No functional change. To generate a diff of this commit: cvs rdiff -u -r1.67 -r1.68 src/usr.bin/xlint/xlin

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

2021-08-08 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Aug 8 15:03:48 UTC 2021 Modified Files: src/usr.bin/xlint/xlint: xlint.c Log Message: lint: rename functions for handling string lists No functional change. To generate a diff of this commit: cvs rdiff -u -r1.66 -r1.67 src

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

2021-08-08 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Aug 8 14:05:33 UTC 2021 Modified Files: src/usr.bin/xlint/xlint: xlint.c Log Message: lint: make data flow in findlibs simpler No functional change. To generate a diff of this commit: cvs rdiff -u -r1.65 -r1.66 src/usr.bin

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

2021-08-08 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Aug 8 13:34:57 UTC 2021 Modified Files: src/usr.bin/xlint/xlint: xlint.c Log Message: lint: make memory management in xlint simpler No functional change. To generate a diff of this commit: cvs rdiff -u -r1.64 -r1.65 src/us

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

2021-08-08 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Aug 8 11:56:36 UTC 2021 Modified Files: src/usr.bin/xlint/lint2: Makefile chk.c read.c Log Message: lint: force strict bool mode No functional change. To generate a diff of this commit: cvs rdiff -u -r1.20 -r1.21 src/usr.b

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

2021-08-08 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Aug 8 10:41:34 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: emit1.c Log Message: lint: condense code for writing the .ln files No functional change. To generate a diff of this commit: cvs rdiff -u -r1.47 -r1.48 src/us

CVS commit: src/usr.bin/xlint

2021-08-07 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 7 17:38:41 UTC 2021 Modified Files: src/usr.bin/xlint: Makefile.inc src/usr.bin/xlint/lint1: Makefile Log Message: lint: clean gcov files for lint2 and xlint as well To generate a diff of this commit: cvs rdiff

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

2021-08-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Aug 5 06:54:16 UTC 2021 Modified Files: src/usr.bin/xlint/lint2: read.c Log Message: lint: fix type of local variable in inpqstrg Noted by Clang-Tidy. To generate a diff of this commit: cvs rdiff -u -r1.47 -r1.48 src/usr.b

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

2021-08-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Aug 5 06:45:37 UTC 2021 Modified Files: src/usr.bin/xlint/lint2: read.c Log Message: lint: fix handling of __int128_t/__uint128_t in lint2 Previously, lint exited with "bad type: J u". To generate a diff of this commit: cv

CVS commit: src/usr.bin/xlint

2021-08-03 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue Aug 3 17:44:59 UTC 2021 Modified Files: src/usr.bin/xlint/common: emit.c externs.h tyname.c src/usr.bin/xlint/lint1: tree.c Log Message: lint: clean up and move 'sametype' This function is only used by lint1. That's

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

2021-08-03 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue Aug 3 17:27:48 UTC 2021 Modified Files: src/usr.bin/xlint/common: param.h Log Message: lint: reduce number of negations in preprocessor condition No functional change. To generate a diff of this commit: cvs rdiff -u -r1.8

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

2021-08-03 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue Aug 3 17:20:02 UTC 2021 Modified Files: src/usr.bin/xlint/common: mem.c Log Message: lint: make memory management code easier to read No functional change. To generate a diff of this commit: cvs rdiff -u -r1.15 -r1.16 src/

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

2021-08-02 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Aug 2 20:58:39 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: oper.c Log Message: lint: expand abbreviations in definitions of operator properties No functional change. To generate a diff of this commit: cvs rdiff -u -r

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

2021-08-01 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Aug 1 19:18:10 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: clean up debug logging in the C grammar To generate a diff of this commit: cvs rdiff -u -r1.353 -r1.354 src/usr.bin/xlint/lint1/cgr

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

2021-08-01 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Aug 1 19:11:54 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: debug.c externs1.h main1.c tree.c Log Message: lint: merge duplicate debugging code The functions 'debug_node' and 'display_expression' were similar enough to

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

2021-08-01 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Aug 1 18:37:29 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: decl.c externs1.h main1.c tree.c Log Message: lint: remove option -d, clean up debug logging The command line option -d was not used by /usr/bin/lint, and it o

CVS commit: src/usr.bin/xlint

2021-08-01 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Aug 1 18:13:54 UTC 2021 Modified Files: src/usr.bin/xlint/common: externs.h mem.c src/usr.bin/xlint/xlint: xlint.c Log Message: lint: make xasprintf simpler No functional change. To generate a diff of this commit:

CVS commit: src/usr.bin/xlint

2021-08-01 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Aug 1 18:07:35 UTC 2021 Modified Files: src/usr.bin/xlint/common: externs.h mem.c src/usr.bin/xlint/lint1: mem1.c Log Message: lint: unexport nomem No functional change. To generate a diff of this commit: cvs rdiff

CVS commit: src/usr.bin/xlint

2021-08-01 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Aug 1 17:59:47 UTC 2021 Modified Files: src/usr.bin/xlint/common: externs.h mem.c src/usr.bin/xlint/lint1: mem1.c src/usr.bin/xlint/lint2: mem2.c Log Message: lint: remove xmapalloc Just trust the standard ma

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

2021-08-01 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Aug 1 14:45:40 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: remove unreachable code from usual arithmetic conversions To generate a diff of this commit: cvs rdiff -u -r1.323 -r1.324 src/usr.bi

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

2021-08-01 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Aug 1 08:03:43 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: lex.c lint1.h Log Message: lint: remove hash value from symbol buffer Conceptually, a symbol buffer does not need to remember its hash value since that belongs

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

2021-08-01 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Aug 1 07:46:51 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: lex.c Log Message: lint: merge duplicate code for removing a symbol from the table No functional change. To generate a diff of this commit: cvs rdiff -u -r1.

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

2021-07-31 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Aug 1 06:58:58 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: lex.c Log Message: lint: extract duplicate code for modifying the symbol table No functional change. To generate a diff of this commit: cvs rdiff -u -r1.59 -

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

2021-07-31 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Aug 1 06:40:37 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y decl.c func.c lex.c main1.c Log Message: lint: add debug logging for symbol table, clean up debug logging When I tried to fix msg_115, I quickly ran in

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

2021-07-31 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Jul 31 19:20:59 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: decl.c Log Message: lint: initialize shared types in the same order as in tspec_t This makes it easier to see whether there are any types missing, such as __ui

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

2021-07-31 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Jul 31 19:12:35 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: externs1.h Log Message: lint: do not evaluate arguments of debug_step To analyze the unexpected test failure of op_shl_lp64, I had reverted debug_step to evalu

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

2021-07-31 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Jul 31 19:07:52 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: decl.c err.c externs1.h func.c init.c lex.c main1.c Log Message: lint: clean up debug logging The calls to debug_step, unlike printf, don't need a

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

2021-07-31 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Jul 31 18:16:42 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: Makefile externs1.h init.c tree.c Added Files: src/usr.bin/xlint/lint1: debug.c Log Message: lint: extract debug logging to separate file Lint currentl

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

2021-07-31 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Jul 31 17:09:21 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: Makefile cgram.y decl.c externs1.h Log Message: lint: add debugging output for the grammar tokens No functional change outside debug mode. To generate a diff

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

2021-07-31 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Jul 31 13:47:19 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: lex.c Log Message: lint: reduce indentation in 'search' No functional change. To generate a diff of this commit: cvs rdiff -u -r1.56 -r1.57 src/usr.bin/xlint

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

2021-07-31 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Jul 31 11:37:54 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: in has_constant_member, don't reuse variables No functional change. To generate a diff of this commit: cvs rdiff -u -r1.320 -r1.321

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

2021-07-31 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Jul 31 11:03:04 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: decl.c externs1.h func.c init.c lint1.h tree.c Log Message: lint: merge duplicate code for generating unqualified type This is a preparation for fixing the wro

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

2021-07-26 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue Jul 27 05:52:53 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: inline align_as in the grammar This saves 500 bytes in the resulting binary. No functional change. To generate a diff of this com

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

2021-07-26 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue Jul 27 05:42:36 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: provide a direct link to the documentation No functional change. To generate a diff of this commit: cvs rdiff -u -r1.349 -r1.350 s

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

2021-07-26 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Jul 26 17:15:24 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: remove redundant associativity declarations Since cgram.y 1.325 from 2021-07-15, these are not needed anymore. Strangely, neither ya

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

2021-07-26 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Jul 26 16:22:24 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: ckbool.c Log Message: lint: make typeok_scalar_strict_bool simpler No functional change. To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/usr.

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

2021-07-25 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Jul 25 22:14:37 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: Makefile decl.c externs1.h Removed Files: src/usr.bin/xlint/lint1: print.c Log Message: lint: move scl_name from print.c to decl.c It is only needed th

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

2021-07-25 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Jul 25 21:31:01 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: revert previous commit; it didn't improve readability No functional change. To generate a diff of this commit: cvs rdiff -u -r1.34

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

2021-07-25 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Jul 25 19:57:22 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: merge duplicate code for abstract_declaration No functional change; same code coverage outside of cgram.y. To generate a diff of t

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

2021-07-25 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Jul 25 19:27:26 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: resolve conflicts in begin_type_specifier_qualifier_list The 9 shift/reduce conflicts were all internal to the grammar rule begin_ty

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

2021-07-25 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Jul 25 18:01:03 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: add citations for a few grammar rules No functional change. To generate a diff of this commit: cvs rdiff -u -r1.339 -r1.340 src/us

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

2021-07-25 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Jul 25 16:57:23 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: wrap overly long lines No functional change. To generate a diff of this commit: cvs rdiff -u -r1.337 -r1.338 src/usr.bin/xlint/lin

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

2021-07-23 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Jul 23 17:06:37 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: func.c lint1.h Log Message: lint: rename cstk_t to control_statement Rename the variables as well. Their previous name 'ci' was not easy to understand, the 'i

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

2021-07-23 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Jul 23 16:48:48 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: decl.c lint1.h Log Message: lint: remove a few unnecessary abbreviations No functional change. To generate a diff of this commit: cvs rdiff -u -r1.208 -r1.20

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

2021-07-23 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Jul 23 16:43:11 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: decl.c lint1.h Log Message: lint: make offset and alignment positive numbers There's no use case for negative alignment or offsets in structures. No functiona

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

2021-07-23 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Jul 23 15:36:57 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: lex.c Log Message: lint: write canonical form of keywords For keywords that have a single spelling variant (such as __packed), write this form in the source, t

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

2021-07-23 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Jul 23 15:14:49 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: move single semicolon to external_declaration This aligns more closely with the grammar from GCC's parser. The global cleanup from

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

2021-07-21 Thread Roland Illig
Module Name:src Committed By: rillig Date: Wed Jul 21 21:24:45 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: move assignments to $$ at the end of the action They are closely related to return statements. While here, add some more remarks fr

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

2021-07-21 Thread Roland Illig
Module Name:src Committed By: rillig Date: Wed Jul 21 21:11:19 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: remove unnecessary assertion for type qualifier If there is any new type qualifier that lint should support (such as _Atomic from C1

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

2021-07-20 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue Jul 20 19:44:36 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y externs1.h init.c tree.c Log Message: lint: use consistent naming scheme for functions that build nodes No functional change. To generate a diff of t

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

2021-07-20 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue Jul 20 19:35:53 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y externs1.h func.c init.c tree.c Log Message: lint: split 'build' into build_binary and build_unary No functional change. To generate a diff of this c

CVS commit: src/usr.bin/xlint/arch/aarch64

2021-07-20 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue Jul 20 18:43:06 UTC 2021 Modified Files: src/usr.bin/xlint/arch/aarch64: targparam.h Log Message: lint: make char unsigned on aarch64 This fixes tests msg_074 and msg_076, which previously warned for '\xff': conversion of 'in

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

2021-07-15 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Jul 15 23:54:22 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: decl.c Log Message: lint: reduce verboseness of merge_signedness No functional change. To generate a diff of this commit: cvs rdiff -u -r1.206 -r1.207 src/us

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

2021-07-15 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Jul 15 23:47:00 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: decl.c Log Message: lint: rename merge_type_specifiers to merge_signedness No functional change. To generate a diff of this commit: cvs rdiff -u -r1.205 -r1.

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

2021-07-15 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Jul 15 23:42:50 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: decl.c Log Message: lint: replace switch statement in dcs_merge_declaration_specifiers Grouping the rules by their abstract type took a lot of visual space. In

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

2021-07-15 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Jul 15 22:47:17 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: decl.c Log Message: lint: clean up mix of 'case' and 'if' No functional change. To generate a diff of this commit: cvs rdiff -u -r1.202 -r1.203 src/usr.bin/x

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

2021-07-15 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Jul 15 22:42:46 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: decl.c Log Message: lint: remove warning about _Complex long double in traditional C Complex types have been introduced in C99, so there is no danger of anyone

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

2021-07-15 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Jul 15 18:18:15 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: merge duplicate code in declarations No functional change, code coverage outside cgram.y stays the same. To generate a diff of thi

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

2021-07-15 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Jul 15 18:13:25 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y lint1.h Log Message: lint: rename grammar rule 'declaration' to 'declaration_or_error' This prepares for merging the duplicate code from top_level_decl

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

2021-07-15 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Jul 15 17:03:50 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: emit1.c externs1.h tree.c Log Message: lint: replace call to ttos with type_name Since tyname.c 1.20 from 2021-01-02, type_name is as simple to use as ttos and

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

2021-07-15 Thread Rin Okuyama
Module Name:src Committed By: rin Date: Thu Jul 15 07:58:05 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: decl.c Log Message: PR port-sh3/56311 As a workaround for GCC bug, compile initdecl() with -O0 for sh3. To generate a diff of this commit: cvs rdiff -u -r1.199

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

2021-07-14 Thread Roland Illig
Module Name:src Committed By: rillig Date: Wed Jul 14 17:19:37 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: in the grammar, rename 'decl' to 'declarator' For a casual reader, the abbreviation 'decl' was ambiguous since C has both declaratio

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

2021-07-14 Thread Roland Illig
Module Name:src Committed By: rillig Date: Wed Jul 14 17:07:24 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y externs1.h tree.c Log Message: lint: extract build_member_access from the grammar No functional change. To generate a diff of this commit: cvs rdiff

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

2021-07-14 Thread Roland Illig
Module Name:src Committed By: rillig Date: Wed Jul 14 16:59:39 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: rename grammar rule 'expr' to 'expression' No functional change. To generate a diff of this commit: cvs rdiff -u -r1.321 -r1.322 s

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

2021-07-14 Thread Roland Illig
Module Name:src Committed By: rillig Date: Wed Jul 14 16:51:57 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: remove references to C18 The standard is called C17, not C18, and furthermore the section numbering didn't change between C11 and C1

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

2021-07-12 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Jul 12 22:02:44 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: order type declarations in grammar, group by C99 section No functional change. To generate a diff of this commit: cvs rdiff -u -r1

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

2021-07-12 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Jul 12 21:43:44 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: reorder grammar rules in the same way as in C99 The code coverage before and after this change is exactly the same, except of course

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

2021-07-11 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Jul 11 21:07:44 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: reorder grammar rules for expressions according to C18 No functional change. To generate a diff of this commit: cvs rdiff -u -r1.3

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

2021-07-11 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Jul 11 20:25:54 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: rename grammar rule 'term' to 'cast_expression' No functional change. To generate a diff of this commit: cvs rdiff -u -r1.315 -r1.

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

2021-07-11 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Jul 11 20:07:42 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: reorganize grammar rules for unary expressions According to GCC, __builtin_offsetof is a primary-expression. According to GCC, __re

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

2021-07-11 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Jul 11 19:46:09 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: remove grammar conflict for __real__ and __imag__ The rules were redundant since a term can be parenthesized by itself, there is no

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

2021-07-11 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Jul 11 19:01:37 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: fix shift/reduce conflict for dangling else The following line no longer occurs in the yacc output: 257: shift/reduce conflict (shif

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

2021-07-11 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Jul 11 18:22:03 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: resolve shift/reduce conflict in notype_direct_decl When a notype_direct_decl was followed by a type_attribute_list, and the next to

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

2021-07-11 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Jul 11 18:03:47 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y scan.l Log Message: lint: use separate tokens for logical not and bitwise complement The token T_UNARY was misleading since it only captured 2 of the 6

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

2021-07-11 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Jul 11 17:52:20 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: remove redundant %prec from the grammar Now that the precedence of the unary operators has been modeled via separate rules, the prec

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

2021-07-11 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Jul 11 17:38:55 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: remove shift/reduce conflict for sizeof According to the grammar, the expression 'sizeof(int)x' was ambiguous. Since 'sizeof(int)' i

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

2021-07-11 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Jul 11 16:57:21 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: resolve shift/reduce conflicts for unary expressions The grammar rule 'term' was ambiguous since both the prefix and postfix increme

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

2021-07-10 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Jul 10 21:44:51 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: inline grammar rules declmod and qualifier_or_storage_class The rule declmod had a confusing name since declmods was not exactly a l

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

2021-07-10 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Jul 10 21:08:16 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: merge duplicate code for struct and enum declarations No functional change. To generate a diff of this commit: cvs rdiff -u -r1.30

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

2021-07-10 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Jul 10 20:58:35 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: move type_attribute back into the main section Type attributes are a standard feature since C11 and thus do not belong in the GCC-sp

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

2021-07-10 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Jul 10 20:44:24 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: merge duplicate code for struct and enum tags This is a tricky area. Inlining identifier_sym did not work because of the side-effec

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

2021-07-10 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Jul 10 19:29:28 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: rename grammar rules to align with C99 No functional change. To generate a diff of this commit: cvs rdiff -u -r1.299 -r1.300 src/u

  1   2   3   4   5   6   7   8   9   >