This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/84108] [8 Regression] incorrect -Wattributes warning for packed/aligned conflict on struct members


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]