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

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

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

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

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.

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

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

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

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

2021-08-10 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

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

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

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

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

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

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

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

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

2021-08-01 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 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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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,

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

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

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

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

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

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

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.

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

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

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

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

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

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

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

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

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

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

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

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

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,

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

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

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

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

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)'

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

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

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

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

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

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

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

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

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

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

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 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

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

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

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

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

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

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

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

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

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

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

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 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

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

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

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

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

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

2021-07-09 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

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

  1   2   3   4   5   6   7   8   >