Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src



Module Name:    src
Committed By:   rillig
Date:           Tue Jul  6 17:33:07 UTC 2021

Modified Files:
        src/distrib/sets/lists/tests: mi
        src/tests/usr.bin/xlint/lint1: Makefile gcc_attribute.c
            gcc_attribute.exp
Added Files:
        src/tests/usr.bin/xlint/lint1: gcc_attribute_enum.c
            gcc_attribute_enum.exp gcc_attribute_func.c gcc_attribute_func.exp
            gcc_attribute_label.c gcc_attribute_label.exp gcc_attribute_stmt.c
            gcc_attribute_stmt.exp gcc_attribute_type.c gcc_attribute_type.exp
            gcc_attribute_var.c gcc_attribute_var.exp

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.1076 -r1.1077 src/distrib/sets/lists/tests/mi
cvs rdiff -u -r1.79 -r1.80 src/tests/usr.bin/xlint/lint1/Makefile
cvs rdiff -u -r1.6 -r1.7 src/tests/usr.bin/xlint/lint1/gcc_attribute.c
cvs rdiff -u -r1.5 -r1.6 src/tests/usr.bin/xlint/lint1/gcc_attribute.exp
cvs rdiff -u -r0 -r1.1 src/tests/usr.bin/xlint/lint1/gcc_attribute_enum.c \
    src/tests/usr.bin/xlint/lint1/gcc_attribute_enum.exp \
    src/tests/usr.bin/xlint/lint1/gcc_attribute_func.c \
    src/tests/usr.bin/xlint/lint1/gcc_attribute_func.exp \
    src/tests/usr.bin/xlint/lint1/gcc_attribute_label.c \
    src/tests/usr.bin/xlint/lint1/gcc_attribute_label.exp \
    src/tests/usr.bin/xlint/lint1/gcc_attribute_stmt.c \
    src/tests/usr.bin/xlint/lint1/gcc_attribute_stmt.exp \
    src/tests/usr.bin/xlint/lint1/gcc_attribute_type.c \
    src/tests/usr.bin/xlint/lint1/gcc_attribute_type.exp \
    src/tests/usr.bin/xlint/lint1/gcc_attribute_var.c \
    src/tests/usr.bin/xlint/lint1/gcc_attribute_var.exp

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index