This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/84108] [8 Regression] incorrect -Wattributes warning for packed/aligned conflict on struct members
- From: "msebor at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 14 Feb 2018 22:03:14 +0000
- Subject: [Bug c/84108] [8 Regression] incorrect -Wattributes warning for packed/aligned conflict on struct members
- Auto-submitted: auto-generated
- References: <bug-84108-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84108
--- Comment #6 from Martin Sebor <msebor at gcc dot gnu.org> ---
Author: msebor
Date: Wed Feb 14 22:02:43 2018
New Revision: 257674
URL: https://gcc.gnu.org/viewcvs?rev=257674&root=gcc&view=rev
Log:
PR middle-end/84108 - incorrect -Wattributes warning for packed/aligned
conflict on struct members
gcc/ChangeLog:
PR c/84108
* attribs.c (diag_attr_exclusions): Consider the exclusion(s)
that correspond to the kind of a declaration.
gcc/testsuite/ChangeLog:
PR c/84108
* gcc.dg/Wattributes-8.c: New test.
Added:
trunk/gcc/testsuite/gcc.dg/Wattributes-8.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/attribs.c
trunk/gcc/testsuite/ChangeLog