The NetBSD Project

CVS log for src/tests/usr.bin/xlint/lint1/platform_int.c

[BACK] Up to [cvs.NetBSD.org] / src / tests / usr.bin / xlint / lint1

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.4 / (download) - annotate - [select for diffs], Sat Apr 16 18:41:21 2022 UTC (9 months, 3 weeks ago) by rillig
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10, HEAD
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored)

tests/lint: fix tests on platforms other than x86_64

In msg_259_ilp32.c 1.6 from 2022-04-15, I removed the option -S from the
test in order to keep the message 259, but I forgot to fix the C99-style
comment as well.

In platform_int.c, the default lint option -S no longer generated
warning 259, so remove that option.

Revision 1.3 / (download) - annotate - [select for diffs], Sun Sep 26 14:52:37 2021 UTC (16 months, 1 week ago) by rillig
Branch: MAIN
Changes since 1.2: +8 -1 lines
Diff to previous 1.2 (colored)

tests/lint: explain difference between i386 and sparc for 259

Seen in usr.bin/make/cond.c 1.278 from 2021-09-21, line 800, the call to
is_token, where unsigned char gets converted to unsigned int or unsigned
long, depending on the platform.

Revision 1.2 / (download) - annotate - [select for diffs], Sun Sep 26 14:28:22 2021 UTC (16 months, 1 week ago) by rillig
Branch: MAIN
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored)

tests/lint: run all platform tests with the same options

Revision 1.1 / (download) - annotate - [select for diffs], Sun Sep 26 03:17:59 2021 UTC (16 months, 1 week ago) by rillig
Branch: MAIN

tests/lint: add tests for platform characteristics

Running lint in usr.bin/make on i386 fails due to this warning:

cond.c(800): warning: argument #3 is converted from 'unsigned char' to
    'unsigned int' due to prototype [259]

This warning only occurred on i386 but not on sparc or x86_64. Try to
reproduce the test situation in platform_int.

The platform code in t_integration.sh was not strict enough, it didn't
check for multiple conditions, such as in msg_132_ilp32. That test was
only supposed to run on ILP32 platforms where size_t is unsigned int. It
also ran on sparc, even though size_t is long there.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>