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

2021-07-08 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Jul 8 19:08:03 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: fix assignment to midrule in grammar (since today) When compiling the grammar with Bison, it complains: error: $$ for the m

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

2021-07-08 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Jul 9 06:37:11 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: indent grammar actions properly No functional change. To generate a diff of this commit: cvs rdiff -u -r1.274 -r1.275 src/usr.bin/

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

2021-07-09 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Jul 9 20:36:34 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: remove 6 of the remaining 162 conflicts from the grammar No functional change. To generate a diff of this commit: cvs rdiff -u -r1

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

2021-07-09 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Jul 9 20:51:27 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: remove 6 conflicts from the grammar, in type_direct_decl No functional change. To generate a diff of this commit: cvs rdiff -u -r1

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

2021-07-09 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Jul 10 04:25:47 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: remove duplicate code for parsing declarations No functional change. To generate a diff of this commit: cvs rdiff -u -r1.277 -r1.2

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

2021-07-09 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Jul 10 04:47:25 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: merge duplicate code in declmods and declmod No functional change. To generate a diff of this commit: cvs rdiff -u -r1.278 -r1.279

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

2021-07-09 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Jul 10 04:57:41 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: remove 8 of the grammar conflicts, 142 remaining No functional change. To generate a diff of this commit: cvs rdiff -u -r1.279 -r1

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

2021-07-09 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Jul 10 05:03:03 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: reduce shift/reduce conflicts in direct_abstract_declarator No functional change. To generate a diff of this commit: cvs rdiff -u

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

2021-07-09 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Jul 10 05:42:30 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: do not allow __packed or _Alignas in statement When the rule 'statement: type_attribute T_SEMI' was added in cgram.y 1.214 from 2021

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

2021-07-10 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Jul 10 09:14:38 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: Makefile Log Message: tests/lint: when adding a new test, set an invalid option This forces the test author to think about whether any custom options are reall

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

2021-07-10 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Jul 10 09:40:12 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: merge duplicate code in grammar for 'while' statements No functional change. To generate a diff of this commit: cvs rdiff -u -r1.2

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

2021-07-10 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Jul 10 09:48:41 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: clean up grammar for do-while statements No functional change. To generate a diff of this commit: cvs rdiff -u -r1.283 -r1.284 src

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

2021-07-10 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Jul 10 09:53:00 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: merge duplicate code in grammar for 'for' loops No functional change. To generate a diff of this commit: cvs rdiff -u -r1.284 -r1.

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

2021-07-10 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Jul 10 12:17:31 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: err.c Log Message: lint: flush stdout before an internal error Previously, the internal error may have appeared too early in the output. Provoking internal er

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

2021-07-10 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Jul 10 14:45:15 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: rename grammar rule declmods to clrtyp_declmods It wasn't obvious from the name 'declmods' that this rule starts a new type declarat

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

2021-07-10 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Jul 10 15:04:07 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: swap order in grammar rule clrtyp_typespec It should not make a difference whether the rule says 'T_TYPENAME clrtyp' or 'clrtyp T_TY

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

2021-07-10 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Jul 10 16:39:43 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: merge duplicate code from grammar rule clrtyp_typespec No functional change. To generate a diff of this commit: cvs rdiff -u -r1.2

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

2021-07-10 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Jul 10 16:41:51 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: inline grammar rule clrtyp_typespec No functional change. To generate a diff of this commit: cvs rdiff -u -r1.291 -r1.292 src/usr.

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

2021-07-10 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Jul 10 16:54:40 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: split grammar rule clrtyp_declmods By extracting clrtyp from that rule, clrtyp and deftyp pair up nicely in most of the grammar rule

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

2021-07-10 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Jul 10 17:06:56 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: extract clrtyp from declaration_specifiers This makes the grammar more uniform and thereby easier to understand. The actions clrtyp

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

2021-07-10 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Jul 10 17:17:06 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: extract clrtyp from noclass_declspecs Finally each clrtyp pairs up with its corresponding deftyp, which makes the grammar much easie

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

2021-07-10 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Jul 10 17:46:55 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y lex.c Log Message: lint: rename y_sb to y_name That buffer is only used for names of identifiers, so be more specific. No functional change. To gene

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

2021-07-10 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Jul 10 18:13:06 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: rename func_arg_list to align with C99 No functional change. To generate a diff of this commit: cvs rdiff -u -r1.297 -r1.298 src/u

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

2021-07-10 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Jul 10 18:56:55 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: merge duplicate code for typespec and notype_typespec No functional change. To generate a diff of this commit: cvs rdiff -u -r1.29

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

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 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 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 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-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-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 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 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 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 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 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 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 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 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-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-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-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-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 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 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-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-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 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 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 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 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 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 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: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-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/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-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-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-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-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 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 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 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-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-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 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 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 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 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-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-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: 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: 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-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-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 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 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 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 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 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: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: 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: 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-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-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 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 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/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 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-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-03-16 Thread Roland Illig
Module Name:src Committed By: rillig Date: Wed Mar 17 01:07:33 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: rename 'parn' to 'paren' in the grammar No functional change. To generate a diff of this commit: cvs rdiff -u -r1.169 -r1.170 src/

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

2021-03-16 Thread Roland Illig
Module Name:src Committed By: rillig Date: Wed Mar 17 01:15:31 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y decl.c externs1.h func.c lex.c lint1.h mem1.c tree.c Log Message: lint: rename 'blklev' to 'block_level' No functional change. To generat

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

2021-03-16 Thread Roland Illig
Module Name:src Committed By: rillig Date: Wed Mar 17 01:19:50 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: rename 'toicon' to 'to_int_constant' No functional change. To generate a diff of this commit: cvs rdiff -u -r1.171 -r1.172 src/usr

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

2021-03-16 Thread Roland Illig
Module Name:src Committed By: rillig Date: Wed Mar 17 01:22:55 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: replace a call to LERROR with lint_assert No functional change. To generate a diff of this commit: cvs rdiff -u -r1.172 -r1.173 sr

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

2021-03-16 Thread Roland Illig
Module Name:src Committed By: rillig Date: Wed Mar 17 01:38:31 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y decl.c externs1.h Log Message: lint: move main part of idecl over to decl.c and rename it No functional change. To generate a diff of this commit: cv

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

2021-03-16 Thread Roland Illig
Module Name:src Committed By: rillig Date: Wed Mar 17 01:53:21 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y decl.c externs1.h Log Message: lint: move to_int_constant from the grammar to decl.c This way, the code is covered by running 'make lint'. The code fr

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

2021-03-16 Thread Roland Illig
Module Name:src Committed By: rillig Date: Wed Mar 17 02:18:03 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: decl.c lint1.h Log Message: lint: rename dinfo_t members to be more expressive While here, sync redundant but diverging comments, split multi-assignments and i

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

2021-03-16 Thread Roland Illig
Module Name:src Committed By: rillig Date: Wed Mar 17 02:24:06 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: lint1.h Log Message: lint: clean up documentation of dinfo_t No functional change. To generate a diff of this commit: cvs rdiff -u -r1.72 -r1.73 src/usr.bin/

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

2021-03-17 Thread Roland Illig
Module Name:src Committed By: rillig Date: Wed Mar 17 15:37:42 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c Log Message: lint: move debug logging for the designator to the top of the code The debugging code is needed by the soon-to-be-added proper handling of

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

2021-03-17 Thread Roland Illig
Module Name:src Committed By: rillig Date: Wed Mar 17 15:45:31 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y externs1.h init.c Log Message: lint: add debug logging for C99-style initialization of arrays No functional change outside debug mode. To generate a

<    1   2   3   4   5   6   7   8   >