]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/ChangeLog
re PR tree-optimization/35503 (Warning about restricted pointers?)
[thirdparty/gcc.git] / gcc / ChangeLog
index 0be66610f34f2e6b1c19d134937be38f0d0cfa49..b9de75bd9e20795a779e73b6591d41f878903cc0 100644 (file)
@@ -1,3 +1,23 @@
+2016-11-13  Prathamesh Kulkarni  <prathamesh.kulkarni@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.
+
 2016-11-13  Eric Botcazou  <ebotcazou@adacore.com>
 
        * ipa-icf.c (sem_function::merge): Do not create a wrapper also if the