This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C PATCH] PR43651: add warning for duplicate qualifier
- From: Mikhail Maltsev <maltsevm at gmail dot com>
- To: Joseph Myers <joseph at codesourcery dot com>
- Cc: Martin Sebor <msebor at gmail dot com>, gcc-patches <gcc-patches at gnu dot org>, Marek Polacek <polacek at redhat dot com>, David Malcolm <dmalcolm at redhat dot com>
- Date: Wed, 11 May 2016 23:24:32 +0300
- Subject: Re: [C PATCH] PR43651: add warning for duplicate qualifier
- Authentication-results: sourceware.org; auth=none
- References: <570241F0 dot 3070705 at gmail dot com> <5707F068 dot 3050601 at gmail dot com> <5708F58A dot 7090701 at gmail dot com> <alpine dot DEB dot 2 dot 20 dot 1605101950580 dot 29007 at digraph dot polyomino dot org dot uk>
On 05/10/2016 10:51 PM, Joseph Myers wrote:
> On Sat, 9 Apr 2016, Mikhail Maltsev wrote:
>
>> gcc/c/ChangeLog:
>>
>> 2016-04-08 Mikhail Maltsev <maltsevm@gmail.com>
>>
>> PR c/43651
>> * c-decl.c (declspecs_add_qual): Warn when -Wduplicate-decl-specifier
>> is enabled.
>> * c-errors.c (pedwarn_c90): Return true if warned.
>> * c-tree.h (pedwarn_c90): Change return type to bool.
>> (enum c_declspec_word): Add new enumerator cdw_atomic.
>>
>> gcc/ChangeLog:
>>
>> 2016-04-08 Mikhail Maltsev <maltsevm@gmail.com>
>>
>> PR c/43651
>> * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
>>
>> gcc/testsuite/ChangeLog:
>>
>> 2016-04-08 Mikhail Maltsev <maltsevm@gmail.com>
>>
>> PR c/43651
>> * gcc.dg/Wduplicate-decl-specifier-c11.c: New test.
>> * gcc.dg/Wduplicate-decl-specifier.c: Likewise.
>>
>>
>> gcc/c-family/ChangeLog:
>>
>> 2016-04-08 Mikhail Maltsev <maltsevm@gmail.com>
>>
>> PR c/43651
>> * c.opt (Wduplicate-decl-specifier): New option.
>
> OK.
>
Committed as r236142.
--
Regards,
Mikhail Maltsev