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

2021-09-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Sep 4 12:30:46 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y check-msgs.lua decl.c func.c init.c tree.c Log Message: lint: spell out abbreviations in comments No functional change. To generate a

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

2021-09-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Sep 4 12:30:46 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y check-msgs.lua decl.c func.c init.c tree.c Log Message: lint: spell out abbreviations in comments No functional change. To generate a

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

2021-09-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Sep 4 12:05:54 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: decl.c Log Message: lint: split declare_local into smaller functions To generate a diff of this commit: cvs rdiff -u -r1.228 -r1.229

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

2021-09-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Sep 4 12:05:54 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: decl.c Log Message: lint: split declare_local into smaller functions To generate a diff of this commit: cvs rdiff -u -r1.228 -r1.229

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

2021-09-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Sep 4 10:09:19 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: sort operators in typeok_op according to ops.def Well, except for INIT, FARG, RETURN. These are listed at the very bottom of the

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

2021-09-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Sep 4 10:09:19 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: sort operators in typeok_op according to ops.def Well, except for INIT, FARG, RETURN. These are listed at the very bottom of the

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

2021-09-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Sep 4 09:45:27 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: extract typeok_point and typeok_arrow from typeok_op No functional change. To generate a diff of this commit: cvs rdiff -u -r1.374

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

2021-09-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Sep 4 09:45:27 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: extract typeok_point and typeok_arrow from typeok_op No functional change. To generate a diff of this commit: cvs rdiff -u -r1.374

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

2021-09-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Sep 4 09:26:22 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: clean up switch statement in typeok_op In the old times where typeok_op was inlined into typeok, it was necessary to write the

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

2021-09-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Sep 4 09:26:22 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: clean up switch statement in typeok_op In the old times where typeok_op was inlined into typeok, it was necessary to write the

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

2021-09-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Sep 4 09:18:25 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: make typeok_quest simpler No functional change. To generate a diff of this commit: cvs rdiff -u -r1.372 -r1.373

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

2021-09-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Sep 4 09:18:25 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: make typeok_quest simpler No functional change. To generate a diff of this commit: cvs rdiff -u -r1.372 -r1.373

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

2021-09-03 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Sep 3 22:27:32 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: extract build_name_call from build_name This reduces the indentation, providing enough space to write out the full diagnostic in the

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

2021-09-03 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Sep 3 22:27:32 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: extract build_name_call from build_name This reduces the indentation, providing enough space to write out the full diagnostic in the

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

2021-09-02 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Sep 2 20:10:17 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: split check_expr_misc into separate functions No functional change. To generate a diff of this commit: cvs rdiff -u -r1.369

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

2021-09-02 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Sep 2 20:10:17 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: split check_expr_misc into separate functions No functional change. To generate a diff of this commit: cvs rdiff -u -r1.369

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

2021-09-02 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Sep 2 19:19:18 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: split check_assign_types_compatible into separate functions No functional change. To generate a diff of this commit: cvs rdiff -u

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

2021-09-02 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Sep 2 19:19:18 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: split check_assign_types_compatible into separate functions No functional change. To generate a diff of this commit: cvs rdiff -u

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

2021-09-02 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Sep 2 16:31:01 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: move a condition into should_warn_about_prototype_conversion No functional change. To generate a diff of this commit: cvs rdiff -u

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

2021-09-02 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Sep 2 16:31:01 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: move a condition into should_warn_about_prototype_conversion No functional change. To generate a diff of this commit: cvs rdiff -u

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

2021-09-02 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Sep 2 16:16:49 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: clean up should_warn_about_prototype_conversion To generate a diff of this commit: cvs rdiff -u -r1.365 -r1.366

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

2021-09-02 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Sep 2 16:16:49 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: clean up should_warn_about_prototype_conversion To generate a diff of this commit: cvs rdiff -u -r1.365 -r1.366

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

2021-09-02 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Sep 2 07:04:41 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: emit1.c Log Message: lint: fix typo in assertion To generate a diff of this commit: cvs rdiff -u -r1.53 -r1.54 src/usr.bin/xlint/lint1/emit1.c Please note

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

2021-09-02 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Sep 2 07:04:41 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: emit1.c Log Message: lint: fix typo in assertion To generate a diff of this commit: cvs rdiff -u -r1.53 -r1.54 src/usr.bin/xlint/lint1/emit1.c Please note

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

2021-09-01 Thread Roland Illig
Module Name:src Committed By: rillig Date: Wed Sep 1 06:48:24 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: remove array creation from expr_derive_type It is only used for creating string types. The creation of other array types happens in

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

2021-09-01 Thread Roland Illig
Module Name:src Committed By: rillig Date: Wed Sep 1 06:48:24 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: remove array creation from expr_derive_type It is only used for creating string types. The creation of other array types happens in

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

2021-08-31 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue Aug 31 23:10:53 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: emit1.c Log Message: lint: reduce verbose switch statement to table lookup No functional change. To generate a diff of this commit: cvs rdiff -u -r1.52

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

2021-08-31 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue Aug 31 23:10:53 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: emit1.c Log Message: lint: reduce verbose switch statement to table lookup No functional change. To generate a diff of this commit: cvs rdiff -u -r1.52

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

2021-08-31 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue Aug 31 19:17:46 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: extract condition for message 259 into separate function No functional change. To generate a diff of this commit: cvs rdiff -u

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

2021-08-31 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue Aug 31 19:17:46 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: extract condition for message 259 into separate function No functional change. To generate a diff of this commit: cvs rdiff -u

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

2021-08-31 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue Aug 31 17:51:30 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: err.c externs1.h lint1.h Log Message: lint: remove unused function for generic messages The function message_at is still used, for information about previous

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

2021-08-31 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue Aug 31 17:51:30 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: err.c externs1.h lint1.h Log Message: lint: remove unused function for generic messages The function message_at is still used, for information about previous

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

2021-08-29 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Aug 29 16:17:08 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: treat _mm_ as builtin function name prefix for all compilers This prefix is not specific to GCC, it is also known by the Intel C

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

2021-08-29 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Aug 29 16:17:08 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: treat _mm_ as builtin function name prefix for all compilers This prefix is not specific to GCC, it is also known by the Intel C

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

2021-08-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 28 21:14:32 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: lex.c Log Message: lint: remove unreachable code for parsing integer constants The largest possible type of an integer constant is 'unsigned long long'. Any

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

2021-08-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 28 21:14:32 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: lex.c Log Message: lint: remove unreachable code for parsing integer constants The largest possible type of an integer constant is 'unsigned long long'. Any

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

2021-08-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 28 18:58:24 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: lex.c Log Message: lint: replace obsolete strtouq with equivalent strtoull To generate a diff of this commit: cvs rdiff -u -r1.74 -r1.75

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

2021-08-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 28 18:58:24 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: lex.c Log Message: lint: replace obsolete strtouq with equivalent strtoull To generate a diff of this commit: cvs rdiff -u -r1.74 -r1.75

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

2021-08-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 28 16:51:57 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: remove double inversion from is_out_of_char_range No functional change. To generate a diff of this commit: cvs rdiff -u -r1.359

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

2021-08-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 28 16:51:57 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: remove double inversion from is_out_of_char_range No functional change. To generate a diff of this commit: cvs rdiff -u -r1.359

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

2021-08-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 28 16:43:50 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: clean up check_integer_comparison No functional change. To generate a diff of this commit: cvs rdiff -u -r1.358 -r1.359

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

2021-08-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 28 16:43:50 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: clean up check_integer_comparison No functional change. To generate a diff of this commit: cvs rdiff -u -r1.358 -r1.359

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

2021-08-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 28 15:36:54 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: merge duplicate code in convert_constant_floating To generate a diff of this commit: cvs rdiff -u -r1.356 -r1.357

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

2021-08-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 28 15:36:54 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: merge duplicate code in convert_constant_floating To generate a diff of this commit: cvs rdiff -u -r1.356 -r1.357

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

2021-08-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 28 15:01:43 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: lex.c Log Message: lint: fix lexing of character constants The final value of the character constant must be determined by the target platform, not the host

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

2021-08-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 28 15:01:43 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: lex.c Log Message: lint: fix lexing of character constants The final value of the character constant must be determined by the target platform, not the host

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

2021-08-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 28 13:11:10 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: externs1.h lex.c tree.c Log Message: lint: use 'unsigned int' for bit-size of types in convert_integer There was no need to have two separate magic values (0

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

2021-08-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 28 13:11:10 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: externs1.h lex.c tree.c Log Message: lint: use 'unsigned int' for bit-size of types in convert_integer There was no need to have two separate magic values (0

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

2021-08-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 28 12:41:03 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: decl.c externs1.h lint1.h Log Message: lint: fix a few lint warnings about type conversions A simple 'unsigned int' is more than enough for representing the

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

2021-08-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 28 12:41:03 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: decl.c externs1.h lint1.h Log Message: lint: fix a few lint warnings about type conversions A simple 'unsigned int' is more than enough for representing the

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

2021-08-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 28 12:29:40 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: remove redundant type casts from convert_constant_floating Since tree.c 1.70 from 2012-03-27, lint has been using properly typed

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

2021-08-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 28 12:29:40 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: remove redundant type casts from convert_constant_floating Since tree.c 1.70 from 2012-03-27, lint has been using properly typed

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

2021-08-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 28 12:06:09 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: decl.c Log Message: lint: clean up alignment_in_bits The given type can never be NULL, and an array can never have NULL as subtype. To generate a diff of

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

2021-08-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 28 12:06:09 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: decl.c Log Message: lint: clean up alignment_in_bits The given type can never be NULL, and an array can never have NULL as subtype. To generate a diff of

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

2021-08-25 Thread Roland Illig
Module Name:src Committed By: rillig Date: Wed Aug 25 22:48:40 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y lex.c Log Message: lint: add __attribute__ regparm Seen in libexec/ld.elf_so/rtld.h. To generate a diff of this commit: cvs rdiff -u -r1.357 -r1.358

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

2021-08-25 Thread Roland Illig
Module Name:src Committed By: rillig Date: Wed Aug 25 22:48:40 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y lex.c Log Message: lint: add __attribute__ regparm Seen in libexec/ld.elf_so/rtld.h. To generate a diff of this commit: cvs rdiff -u -r1.357 -r1.358

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

2021-08-25 Thread Roland Illig
Module Name:src Committed By: rillig Date: Wed Aug 25 22:00:27 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: rename local variable in plength The assertion in build_plus_minus is safe since that function is only called if the types are

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

2021-08-25 Thread Roland Illig
Module Name:src Committed By: rillig Date: Wed Aug 25 22:00:27 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: rename local variable in plength The assertion in build_plus_minus is safe since that function is only called if the types are

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

2021-08-23 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Aug 23 17:03:23 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: lint1.h tree.c Log Message: lint: expand macro in string concatenation No functional change. To generate a diff of this commit: cvs rdiff -u -r1.124 -r1.125

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

2021-08-23 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Aug 23 17:03:23 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: lint1.h tree.c Log Message: lint: expand macro in string concatenation No functional change. To generate a diff of this commit: cvs rdiff -u -r1.124 -r1.125

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

2021-08-23 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Aug 23 06:32:31 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: make overflow check for binary '+' simpler No functional change. To generate a diff of this commit: cvs rdiff -u -r1.348 -r1.349

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

2021-08-23 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Aug 23 06:32:31 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: make overflow check for binary '+' simpler No functional change. To generate a diff of this commit: cvs rdiff -u -r1.348 -r1.349

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

2021-08-23 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Aug 23 06:26:37 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: externs1.h lex.c lint1.h Log Message: lint: inline msb This reduces the binary size on x86_64 by about 500 bytes. No functional change. To generate a diff

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

2021-08-23 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Aug 23 06:26:37 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: externs1.h lex.c lint1.h Log Message: lint: inline msb This reduces the binary size on x86_64 by about 500 bytes. No functional change. To generate a diff

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

2021-08-23 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Aug 23 06:21:59 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: emit1.c externs1.h lex.c tree.c Log Message: lint: remove unnecessary width parameter for msb No functional change. To generate a diff of this commit: cvs

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

2021-08-23 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Aug 23 06:21:59 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: emit1.c externs1.h lex.c tree.c Log Message: lint: remove unnecessary width parameter for msb No functional change. To generate a diff of this commit: cvs

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

2021-08-22 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Aug 22 21:27:15 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: debug.c lint1.h tree.c Log Message: lint: merge duplicate code for binary operator No functional change. To generate a diff of this commit: cvs rdiff -u

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

2021-08-22 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Aug 22 21:27:15 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: debug.c lint1.h tree.c Log Message: lint: merge duplicate code for binary operator No functional change. To generate a diff of this commit: cvs rdiff -u

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

2021-08-21 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 21 11:27:27 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: extract check_prototype_conversion_integer No functional change. To generate a diff of this commit: cvs rdiff -u -r1.343 -r1.344

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

2021-08-21 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 21 11:27:27 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: extract check_prototype_conversion_integer No functional change. To generate a diff of this commit: cvs rdiff -u -r1.343 -r1.344

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

2021-08-21 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 21 08:39:01 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: rename local variable '1' in fold_float It looked too similar to the number 1. To generate a diff of this commit: cvs rdiff -u

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

2021-08-21 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 21 08:39:01 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: rename local variable '1' in fold_float It looked too similar to the number 1. To generate a diff of this commit: cvs rdiff -u

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

2021-08-21 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 21 08:29:59 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: fix spacing in tree.c To generate a diff of this commit: cvs rdiff -u -r1.341 -r1.342 src/usr.bin/xlint/lint1/tree.c Please note

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

2021-08-21 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 21 08:29:59 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: fix spacing in tree.c To generate a diff of this commit: cvs rdiff -u -r1.341 -r1.342 src/usr.bin/xlint/lint1/tree.c Please note

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

2021-08-21 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 21 07:03:30 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: add missing newlines to grammar debug output To generate a diff of this commit: cvs rdiff -u -r1.356 -r1.357

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

2021-08-21 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 21 07:03:30 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: add missing newlines to grammar debug output To generate a diff of this commit: cvs rdiff -u -r1.356 -r1.357

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

2021-08-19 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Aug 19 21:13:58 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: emit1.c externs1.h lex.c tree.c Log Message: lint: change return type of 'msb' from int to bool No functional change. To generate a diff of this commit: cvs

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

2021-08-19 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Aug 19 21:13:58 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: emit1.c externs1.h lex.c tree.c Log Message: lint: change return type of 'msb' from int to bool No functional change. To generate a diff of this commit: cvs

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

2021-08-19 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Aug 19 20:53:37 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: clean up formatting of 'fold' To generate a diff of this commit: cvs rdiff -u -r1.338 -r1.339 src/usr.bin/xlint/lint1/tree.c

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

2021-08-19 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Aug 19 20:53:37 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: clean up formatting of 'fold' To generate a diff of this commit: cvs rdiff -u -r1.338 -r1.339 src/usr.bin/xlint/lint1/tree.c

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

2021-08-19 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Aug 19 20:08:25 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: lex.c Log Message: lint: clean up lex_integer_constant When lexing an integer constant, it does not make sense to check for 'struct', 'void' or other types.

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

2021-08-19 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Aug 19 20:08:25 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: lex.c Log Message: lint: clean up lex_integer_constant When lexing an integer constant, it does not make sense to check for 'struct', 'void' or other types.

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

2021-08-19 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Aug 19 18:39:34 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: op.h Log Message: lint: un-abbreviate parameter names of macro To generate a diff of this commit: cvs rdiff -u -r1.16 -r1.17 src/usr.bin/xlint/lint1/op.h

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

2021-08-19 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Aug 19 18:39:34 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: op.h Log Message: lint: un-abbreviate parameter names of macro To generate a diff of this commit: cvs rdiff -u -r1.16 -r1.17 src/usr.bin/xlint/lint1/op.h

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

2021-08-19 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Thu Aug 19 08:59:22 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y lex.c Log Message: Add returns_nonnull attribute To generate a diff of this commit: cvs rdiff -u -r1.355 -r1.356 src/usr.bin/xlint/lint1/cgram.y

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

2021-08-19 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Thu Aug 19 08:59:22 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y lex.c Log Message: Add returns_nonnull attribute To generate a diff of this commit: cvs rdiff -u -r1.355 -r1.356 src/usr.bin/xlint/lint1/cgram.y

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

2021-04-18 Thread Roland Illig
On 18.04.2021 16:12, Christos Zoulas wrote: In article <20210418085205.10b75f...@cvs.netbsd.org>, Roland Illig wrote: -=-=-=-=-=- Module Name:src Committed By: rillig Date: Sun Apr 18 08:52:04 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: err.c externs1.h lint1.h

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

2021-04-18 Thread Christos Zoulas
In article <20210418085205.10b75f...@cvs.netbsd.org>, Roland Illig wrote: >-=-=-=-=-=- > >Module Name: src >Committed By: rillig >Date: Sun Apr 18 08:52:04 UTC 2021 > >Modified Files: > src/usr.bin/xlint/lint1: err.c externs1.h lint1.h > >Log Message: >lint: add error_at,

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

2021-01-09 Thread Roland Illig
On 09.01.2021 17:42, Martin Husemann wrote: On Sat, Jan 09, 2021 at 05:15:12PM +0100, Roland Illig wrote: I guess a simple "make clean && make" will clear up the situation. Not quite, "make clean" will not remove the old ops.c file in the objdir, you need to manually kill it (or just remove

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

2021-01-09 Thread Martin Husemann
On Sat, Jan 09, 2021 at 05:15:12PM +0100, Roland Illig wrote: > I guess a simple "make clean && make" will clear up the situation. Not quite, "make clean" will not remove the old ops.c file in the objdir, you need to manually kill it (or just remove all lint objdirs completely). Please add an

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

2021-01-09 Thread Roland Illig
On 09.01.2021 12:42, Jared McNeill wrote: Not sure if it is this exact change, but I am no longer able to build tools on Ubuntu 20.04.1: --- lint1 --- #  link  lint1/lint1 /usr/bin/ld: ops.lo: in function `initmtab': ops.c:(.text+0x63): undefined reference to `STRUCT_ASSIGN' That's weird

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

2021-01-09 Thread Jared McNeill
Not sure if it is this exact change, but I am no longer able to build tools on Ubuntu 20.04.1: --- lint1 --- # link lint1/lint1 cc -O -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/home/jmcneill/netbsd/cvs-src/obj/tooldir.Linux-5.8.0-34-generic-x86_64/include/compat

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

2019-11-09 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sat Nov 9 19:54:09 UTC 2019 Modified Files: src/usr.bin/xlint/lint1: scan.l Log Message: Understand _Alignof To generate a diff of this commit: cvs rdiff -u -r1.90 -r1.91 src/usr.bin/xlint/lint1/scan.l Please note that

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

2019-11-09 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sat Nov 9 19:54:09 UTC 2019 Modified Files: src/usr.bin/xlint/lint1: scan.l Log Message: Understand _Alignof To generate a diff of this commit: cvs rdiff -u -r1.90 -r1.91 src/usr.bin/xlint/lint1/scan.l Please note that

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

2019-09-05 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Thu Sep 5 20:12:11 UTC 2019 Modified Files: src/usr.bin/xlint/lint1: scan.l Log Message: Fix decorators for __thread, add _Thread_local christos To generate a diff of this commit: cvs rdiff -u -r1.89 -r1.90

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

2019-09-05 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Thu Sep 5 20:12:11 UTC 2019 Modified Files: src/usr.bin/xlint/lint1: scan.l Log Message: Fix decorators for __thread, add _Thread_local christos To generate a diff of this commit: cvs rdiff -u -r1.89 -r1.90

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

2019-07-12 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Fri Jul 12 23:32:45 UTC 2019 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: allow c9x struct casts (in new libXt) To generate a diff of this commit: cvs rdiff -u -r1.86 -r1.87 src/usr.bin/xlint/lint1/tree.c

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

2019-07-12 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Fri Jul 12 23:32:45 UTC 2019 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: allow c9x struct casts (in new libXt) To generate a diff of this commit: cvs rdiff -u -r1.86 -r1.87 src/usr.bin/xlint/lint1/tree.c

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

2016-07-21 Thread Christos Zoulas
In article <20160721050113.ga1...@netbsd.org>, David Holland wrote: >On Wed, Jul 20, 2016 at 02:14:12PM -0400, Christos Zoulas wrote: > > Modified Files: > > src/usr.bin/xlint/lint1: cgram.y > > > > Log Message: > > accept attributes in param decls >

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

2016-07-20 Thread David Holland
On Wed, Jul 20, 2016 at 02:14:12PM -0400, Christos Zoulas wrote: > Modified Files: > src/usr.bin/xlint/lint1: cgram.y > > Log Message: > accept attributes in param decls Parsing gcc attributes "correctly" (as in, where gcc accepts them) is a trainwreck. Do we really want to bother

<    3   4   5   6   7   8   9   >