OpenGrok
Cross Reference: gcc_attribute_label.c
xref
: /
src
/
tests
/
usr.bin
/
xlint
/
lint1
/
gcc_attribute_label.c
Home
|
History
|
Annotate
|
Download
|
only in
lint1
History log of
/src/tests/usr.bin/xlint/lint1/gcc_attribute_label.c
Revision
Date
Author
Comments
1.5
16-May-2025
rillig
tests/lint: test multiple attributes on enums, functions and labels
The grammar rule 'gcc_attribute_specifier_list:
gcc_attribute_specifier_list gcc_attribute_specifier' was not covered
before.
1.4
28-Mar-2023
rillig
branches: 1.4.2;
lint: warn about extern declarations outside headers
https://mail-index.netbsd.org/tech-userlevel/2023/03/15/msg013727.html
1.3
28-Apr-2022
rillig
lint: revert resolving grammar conflicts for labeled statements
Restore the grammar rule for labeled_statement as it was before cgram.y
1.400 from 2022-04-24. This allows labels with attributes again. Fix
the wrong interpretation in the tests; the attributes belong to the
label, not to the statement.
Today in the morning, when I thought that the change in cgram.y 1.400
were innocent, I accidentally ran lint only with the options '-Sw' but
forgot the option '-g' for GNU mode. Without that option, the token
'__attribute__' is unknown, which unsurprisingly leads to lots of syntax
errors, and these didn't change with that commit. The actual change was
only visible in GNU mode.
1.2
11-Jul-2021
rillig
lint: support __attribute__((hot))
The corresponding attribute 'cold' was already added in cgram.y 1.84
from 2016-12-29.
1.1
06-Jul-2021
rillig
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.
1.4.2.1
02-Aug-2025
perseant
Sync with HEAD
Indexes created Thu Oct 02 01:09:59 GMT 2025