invoke.texi (Option Summary): Mention new option -Wdisallowed-function-list=...
authorRaksit Ashok <raksit@google.com>
Wed, 9 Jul 2008 08:23:48 +0000 (08:23 +0000)
committerRaksit Ashok <raksit@gcc.gnu.org>
Wed, 9 Jul 2008 08:23:48 +0000 (08:23 +0000)
commit1ebc7e681079e61300e75a5c0f3b2da335720cc7
tree52f1164b80ec03e33183a75b3810a57f8697a378
parent47d268d0d33fbf5dbcd7d022c87e1dfcb6b61577
invoke.texi (Option Summary): Mention new option -Wdisallowed-function-list=...

2008-07-09  Raksit Ashok <raksit@google.com>

* doc/invoke.texi (Option Summary): Mention new option
-Wdisallowed-function-list=...
(Warning Options): Document -Wdisallowed-function-list=...
* common.opt (Wdisallowed-function-list=): New flag.
* flags.h (warn_disallowed_functions): External definition of new
boolean warning flag.
(warn_if_disallowed_function_p): Declare new function.
* opts.c (warning_disallowed_functions): New static variable.
(warn_disallowed_functions): New boolean warning flag.
(warn_if_disallowed_function_p): New function.
(add_comma_separated_to_vector): Rename
add_instrument_functions_exclude_list to this.
(common_handle_option): Handle new option. Rename calls to
add_instrument_functions_exclude_list into calls to
add_comma_separated_to_vector.
* c-parser.c (c_parser_postfix_expression_after_primary): New warning
based on flag warn_disallowed_functions.

gcc/cp/ChangeLog

2008-07-09  Raksit Ashok <raksit@google.com>

* parser.c (cp_parser_postfix_expression): New warning based on flag
warn_disallowed_functions.

gcc/testsuite/ChangeLog

2008-07-09  Raksit Ashok <raksit@google.com>

* gcc.dg/wdisallowed-functions-1.c: New test.
* gcc.dg/wdisallowed-functions-2.c: New test.
* g++.dg/warn/Wdisallowed-functions-1.C: New test.
* g++.dg/warn/Wdisallowed-functions-2.C: New test.

From-SVN: r137655
13 files changed:
gcc/ChangeLog
gcc/c-parser.c
gcc/common.opt
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/doc/invoke.texi
gcc/flags.h
gcc/opts.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/Wdisallowed-functions-1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/warn/Wdisallowed-functions-2.C [new file with mode: 0644]
gcc/testsuite/gcc.dg/wdisallowed-functions-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/wdisallowed-functions-2.c [new file with mode: 0644]