diff options
author | Alexandre Oliva <oliva@adacore.com> | 2019-07-18 00:38:45 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@gcc.gnu.org> | 2019-07-18 00:38:45 +0000 |
commit | dea78431676f0104f5467788e8e78fc05c3ab981 (patch) | |
tree | b343f18a6534f518028fdf53783d6d934389ab2d /gcc/c/c-decl.c | |
parent | 8ea3c020a234e25d4a976e69902208f744c0819c (diff) | |
download | gcc-dea78431676f0104f5467788e8e78fc05c3ab981.zip gcc-dea78431676f0104f5467788e8e78fc05c3ab981.tar.gz gcc-dea78431676f0104f5467788e8e78fc05c3ab981.tar.bz2 |
-Wmissing-attributes: check that we avoid duplicates and false positives
The initial patch for PR 81824 fixed various possibilities of
-Wmissing-attributes reporting duplicates and false positives. The
test that avoided them was a little obscure, though, so this patch
rewrites it into a more self-evident form.
The patch also adds a testcase that already passed, but that
explicitly covers some of the possibilities of reporting duplicates
and false positives that preexisting tests did not cover.
for gcc/ChangeLog
PR middle-end/81824
* attribs.c (decls_mismatched_attributes): Simplify the logic
that avoids duplicates and false positives.
for gcc/testsuite/ChangeLog
PR middle-end/81824
* g++.dg/Wmissing-attributes-1.C: New. Some of its fragments
are from Martin Sebor.
From-SVN: r273563
Diffstat (limited to 'gcc/c/c-decl.c')
0 files changed, 0 insertions, 0 deletions