]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/c-family/ChangeLog
re PR c++/71024 (Missing warning for contradictory attributes)
authorMarek Polacek <polacek@redhat.com>
Wed, 11 May 2016 17:07:37 +0000 (17:07 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Wed, 11 May 2016 17:07:37 +0000 (17:07 +0000)
commit5c3a10fbc1d4e91287b635d6ff068c8f80dff8cd
treee5ba1d4738473b86a982524a9ab092d6e15fa106
parent7cfb065b0e75bf8dab8337d1c3ce33f79110226f
re PR c++/71024 (Missing warning for contradictory attributes)

PR c++/71024
* c-common.c (diagnose_mismatched_attributes): New function.
* c-common.h (diagnose_mismatched_attributes): Declare.

* c-decl.c (diagnose_mismatched_decls): Factor out code to
diagnose_mismatched_attributes and call it.

* decl.c (duplicate_decls): Call diagnose_mismatched_decls.

* c-c++-common/attributes-3.c: New test.

From-SVN: r236129
gcc/c-family/ChangeLog
gcc/c-family/c-common.c
gcc/c-family/c-common.h
gcc/c/ChangeLog
gcc/c/c-decl.c
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/attributes-3.c [new file with mode: 0644]