diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2017-02-24 20:41:54 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2017-02-24 20:41:54 +0000 |
commit | bbd5521e3b05b5a6f542fdbd8d7e03473d89f8b4 (patch) | |
tree | 29e5c16f08052689b4d790b7167660e37137ba27 /gcc/c-family/ChangeLog | |
parent | 4d8987f7e73fa80596144438da43dd9cdb03bdc6 (diff) | |
download | gcc-bbd5521e3b05b5a6f542fdbd8d7e03473d89f8b4.tar.gz |
PR c++/79588
c-family/
* c-common.c (check_function_restrict): New function.
(check_function_arguments): Add FNDECL argument. Call
check_function_restrict if -Wrestrict.
* c-warn.c (warn_for_restrict): Remove ARGS argument, add ARGARRAY
and NARGS. Use auto_vec for ARG_POSITIONS, simplify.
* c-common.h (check_function_arguments): Add FNDECL argument.
(warn_for_restrict): Remove ARGS argument, add ARGARRAY and NARGS.
c/
* c-parser.c (c_parser_postfix_expression_after_primary): Don't
handle -Wrestrict here.
* c-typeck.c (build_function_call_vec): Adjust
check_function_arguments caller.
cp/
* call.c (build_over_call): Call check_function_arguments even for
-Wrestrict, adjust check_function_arguments caller.
* parser.c (cp_parser_postfix_expression): Don't handle -Wrestrict
here.
* typeck.c (cp_build_function_call_vec): Adjust
check_function_arguments caller.
testsuite/
* g++.dg/warn/Wrestrict-1.C: New test.
* g++.dg/warn/Wrestrict-2.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@245719 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-family/ChangeLog')
-rw-r--r-- | gcc/c-family/ChangeLog | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog index c234c892e72..b2f2d08202c 100644 --- a/gcc/c-family/ChangeLog +++ b/gcc/c-family/ChangeLog @@ -1,3 +1,14 @@ +2017-02-24 Jakub Jelinek <jakub@redhat.com> + + PR c++/79588 + * c-common.c (check_function_restrict): New function. + (check_function_arguments): Add FNDECL argument. Call + check_function_restrict if -Wrestrict. + * c-warn.c (warn_for_restrict): Remove ARGS argument, add ARGARRAY + and NARGS. Use auto_vec for ARG_POSITIONS, simplify. + * c-common.h (check_function_arguments): Add FNDECL argument. + (warn_for_restrict): Remove ARGS argument, add ARGARRAY and NARGS. + 2017-02-24 Eric Botcazou <ebotcazou@adacore.com> * c-ada-spec.c (dump_ada_function_declaration): Add comment about the |