The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.5 / (download) - annotate - [select for diffs], Mon Aug 7 22:30:39 2023 UTC (6 months, 3 weeks ago) by rillig
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +7 -4 lines
Diff to previous 1.4 (colored)

tests/lint: show that portable mode depends on PTRDIFF_TSPEC

Since 2023.07.08.12.45.43, lint warns in lib/libkvm on i386.

Revision 1.4 / (download) - annotate - [select for diffs], Sat Jul 8 16:13:00 2023 UTC (7 months, 3 weeks ago) by rillig
Branch: MAIN
Changes since 1.3: +21 -1 lines
Diff to previous 1.3 (colored)

lint: warn about pointer casts between different kinds of types

Pointer casts from an integer type to a floating-point type and vice
versa get a 'maybe troublesome' warning now.  The previous assumption
that all types of the same bit-size are convertible may have been valid
from a technical point of view, but still such code should get more
attention.

The rules for struct and union types could be made more fine-grained
later, if the need arises.  To suppress this warning, it's always
possible to cast to an intermediate 'void *'.

Revision 1.3 / (download) - annotate - [select for diffs], Sat Jul 8 15:26:25 2023 UTC (7 months, 3 weeks ago) by rillig
Branch: MAIN
Changes since 1.2: +2 -1 lines
Diff to previous 1.2 (colored)

lint: do not use portable type sizes in integer constraints

This reverts the change from tree.c 1.547 from 2023-07-03.  Back then, I
didn't know that the actual value from a type's 'portable size in bits'
was not supposed to be used.

Revision 1.2 / (download) - annotate - [select for diffs], Wed Jul 5 11:42:14 2023 UTC (7 months, 3 weeks ago) by rillig
Branch: MAIN
Changes since 1.1: +3 -3 lines
Diff to previous 1.1 (colored)

tests/lint: spell platform identifiers for 'long double' consistently

The test file names don't have a hyphen, so the identifiers shouldn't
have one either.

Revision 1.1 / (download) - annotate - [select for diffs], Wed Jul 5 11:36:56 2023 UTC (7 months, 3 weeks ago) by rillig
Branch: MAIN

tests/lint: add platform-specific tests for troublesome pointer casts

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>