This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r273563 - in /trunk/gcc: ChangeLog attribs.c te...
- From: aoliva at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Thu, 18 Jul 2019 00:38:45 -0000
- Subject: r273563 - in /trunk/gcc: ChangeLog attribs.c te...
Author: aoliva
Date: Thu Jul 18 00:38:45 2019
New Revision: 273563
URL: https://gcc.gnu.org/viewcvs?rev=273563&root=gcc&view=rev
Log:
-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.
Added:
trunk/gcc/testsuite/g++.dg/Wmissing-attributes-1.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/attribs.c
trunk/gcc/testsuite/ChangeLog