https://gcc.gnu.org/bugzilla/show_bug.cgi?id=35503

--- Comment #3 from prathamesh3492 at gcc dot gnu.org ---
Author: prathamesh3492
Date: Sun Nov 13 19:38:36 2016
New Revision: 242366

URL: https://gcc.gnu.org/viewcvs?rev=242366&root=gcc&view=rev
Log:
2016-11-13  Prathamesh Kulkarni  <prathamesh.kulka...@linaro.org>

        PR c/35503
        * doc/invoke.texi: Document Wrestrict.
        * pretty-print.c (pp_format): Add case for "Z" specifier.
        (test_pp_format): Test "Z" specifier.
c-family/
        * c-common.h (warn_for_restrict): Declare.
        * c-warn.c: Include gcc-rich-location.h.
        (warn_for_restrict): New function.
        * c-format.c (gcc_tdiag_char_table): Add entry for "Z" specifier.
        (gcc_cdiag_char_table): Likewise.
        (gcc_cxxdiag_char_table): Likewise.
        * c.opt (Wrestrict): New option.
c/
        * c-parser.c (c_parser_postfix_expression_after_primary): Call
        warn_for_restrict.
cp/
        * parser.c (cp_parser_postfix_pexpression): Call warn_for_restrict.
testsuite/
        * c-c++-common/pr35503-1.c: New test.
        * c-c++-common/pr35503-2.c: Likewise.
        * c-c++-common/pr35503-3.c: Likewise.
        * gcc.dg/format/gcc_diag-1.c: Add tests for "Z" specifier. 

Added:
    trunk/gcc/testsuite/c-c++-common/pr35503-1.c
    trunk/gcc/testsuite/c-c++-common/pr35503-2.c
    trunk/gcc/testsuite/c-c++-common/pr35503-3.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/c-family/c-common.h
    trunk/gcc/c-family/c-format.c
    trunk/gcc/c-family/c-warn.c
    trunk/gcc/c-family/c.opt
    trunk/gcc/c/c-parser.c
    trunk/gcc/cp/parser.c
    trunk/gcc/doc/invoke.texi
    trunk/gcc/pretty-print.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.dg/format/gcc_diag-1.c

Reply via email to