The NetBSD Project

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

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

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.13: download - view: text, markup, annotated - select for diffs
Tue Mar 28 14:44:34 2023 UTC (20 months, 2 weeks ago) by rillig
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, HEAD
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +3 -1 lines
lint: warn about extern declarations outside headers

https://mail-index.netbsd.org/tech-userlevel/2023/03/15/msg013727.html

Revision 1.12: download - view: text, markup, annotated - select for diffs
Thu Aug 25 19:03:48 2022 UTC (2 years, 3 months ago) by rillig
Branches: MAIN
CVS tags: netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +5 -2 lines
lint: remove explicit list of known GCC attributes

Most GCC attributes consist of a single identifier.  Up to now, it was
necessary to list each of these identifiers in the grammar, even those
that only apply to a single target architecture.

Instead, parse the general form of attributes, matching the few
attributes that lint handles by name instead.  While here, rename the
grammar rules to use the GCC terms.

To avoid conflicts between the global function 'printf' and the GCC
attribute of the same name, do not add GCC attributes to the symbol
table, and don't make these symbols 'extern' either.

ok christos@.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Fri Jun 17 18:54:53 2022 UTC (2 years, 5 months ago) by rillig
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +3 -3 lines
tests/lint: make 'expect+-' comments stricter

Previously, the expectations from these comments were already satisfied
if the expectation occurred somewhere in the actual message from lint.
This meant that the prefix 'error:' or 'warning:' could be omitted from
the 'expect' comment.  These omissions were hard to see in a manual
review.  Now any omissions must be visually marked with '...'.

The test msg_342 now reports its messages properly as being in the file
msg_342.c, rather than msg_341.c.  This had been a copy-and-paste
mistake.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Thu Jul 15 21:00:05 2021 UTC (3 years, 4 months ago) by rillig
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +11 -1 lines
tests/lint: cover more edge cases in the parser

Revision 1.9: download - view: text, markup, annotated - select for diffs
Fri Jul 9 18:55:28 2021 UTC (3 years, 5 months ago) by rillig
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +34 -1 lines
tests/lint: ensure that GCC __attribute__ can be parsed

Revision 1.8: download - view: text, markup, annotated - select for diffs
Tue Jul 6 18:43:27 2021 UTC (3 years, 5 months ago) by rillig
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +20 -1 lines
tests/lint: add test for empty __attribute__(())

Revision 1.7: download - view: text, markup, annotated - select for diffs
Tue Jul 6 17:33:07 2021 UTC (3 years, 5 months ago) by rillig
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +1 -7 lines
tests/lint: add tests for GCC __attribute__

Before fixing the wrong handling of __attribute__ that is demonstrated
at the end of gcc_attribute.c, ensure that the attribute handling works
in the most basic cases.

Lint currently accepts __attribute__ in more places than it should.
This leads to some ambiguities in the grammar.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Tue Jul 6 06:38:29 2021 UTC (3 years, 5 months ago) by rillig
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +19 -1 lines
tests/lint: document wrong handling of GCC __attribute__

Revision 1.5: download - view: text, markup, annotated - select for diffs
Mon May 3 07:08:54 2021 UTC (3 years, 7 months ago) by rillig
Branches: MAIN
CVS tags: cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +6 -4 lines
lint: allow variables to be named 'pcs'

Revision 1.4: download - view: text, markup, annotated - select for diffs
Mon May 3 06:24:18 2021 UTC (3 years, 7 months ago) by rillig
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +14 -1 lines
tests/lint: demonstrate bug in the lexer for GCC attributes

Revision 1.3: download - view: text, markup, annotated - select for diffs
Sat May 1 07:56:20 2021 UTC (3 years, 7 months ago) by rillig
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +9 -1 lines
tests/lint: add test for __attribute__((nonnull()))

Revision 1.2: download - view: text, markup, annotated - select for diffs
Sat May 1 07:25:07 2021 UTC (3 years, 7 months ago) by rillig
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +7 -3 lines
lint: support all documented variants of __attribute__((nonnull))

Revision 1.1: download - view: text, markup, annotated - select for diffs
Fri Apr 30 23:49:36 2021 UTC (3 years, 7 months ago) by rillig
Branches: MAIN
tests/lint: add very basic tests for GCC __attribute__

Diff request

This form allows you to request diffs 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.

Log view options

CVSweb <webmaster@jp.NetBSD.org>