[Bug c/84108] [8 Regression] incorrect -Wattributes warning for packed/aligned conflict on struct members
msebor at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Feb 14 22:05:00 GMT 2018
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
More information about the Gcc-bugs
mailing list