]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/attribs.cc
PR middle-end/84108 - incorrect -Wattributes warning for packed/aligned conflict...
authorMartin Sebor <msebor@redhat.com>
Wed, 14 Feb 2018 22:02:43 +0000 (22:02 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Wed, 14 Feb 2018 22:02:43 +0000 (15:02 -0700)
commitfba303ed8c190cc2b8695d737efd7af409596398
tree002e7f40bf82a0465272aea8e6c554cac2590d82
parentee3bb1b7a2f73c9ccc99b0861e8a3408d408ca2d
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.

From-SVN: r257674
gcc/ChangeLog
gcc/attribs.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/Wattributes-8.c [new file with mode: 0644]