diff options
author | Jakub Jelinek <jakub@redhat.com> | 2009-03-28 18:23:08 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2009-03-28 18:23:08 +0100 |
commit | 574872ff83ca439f589a9f98d8076bdb2b8d91d6 (patch) | |
tree | 0216b4a1ce37818cd8183908ea9ae97fb9800a6c /gcc/c-parser.c | |
parent | b005da111c1cfd1b71647eb68eb3fe1bfc35ee64 (diff) | |
download | gcc-574872ff83ca439f589a9f98d8076bdb2b8d91d6.zip gcc-574872ff83ca439f589a9f98d8076bdb2b8d91d6.tar.gz gcc-574872ff83ca439f589a9f98d8076bdb2b8d91d6.tar.bz2 |
re PR c++/39554 (-Wdisallowed-function-list fails when #including <algorithm>)
PR c++/39554
* opts.c (warning_disallowed_functions, warn_disallowed_functions,
warn_if_disallowed_function_p): Removed.
(common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
* c-parser.c (c_parser_postfix_expression_after_primary): Don't call
warning_if_disallowed_function_p.
* flags.h (warn_if_disallowed_function_p,
warn_disallowed_functions): Removed.
* common.opt (Wdisallowed-function-list=): Removed.
* doc/invoke.texi (-Wdisallowed-function-list=): Removed.
* parser.c (cp_parser_postfix_expression): Don't call
warning_if_disallowed_function_p.
* gcc.dg/wdisallowed-functions-1.c: Removed.
* gcc.dg/wdisallowed-functions-2.c: Removed.
* gcc.dg/wdisallowed-functions-3.c: Removed.
* g++.dg/warn/Wdisallowed-functions-1.C: Removed.
* g++.dg/warn/Wdisallowed-functions-2.C: Removed.
* g++.dg/warn/Wdisallowed-functions-3.C: Removed.
From-SVN: r145198
Diffstat (limited to 'gcc/c-parser.c')
-rw-r--r-- | gcc/c-parser.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/gcc/c-parser.c b/gcc/c-parser.c index ea0036c..f910128 100644 --- a/gcc/c-parser.c +++ b/gcc/c-parser.c @@ -5584,8 +5584,6 @@ c_parser_postfix_expression_after_primary (c_parser *parser, "expected %<)%>"); expr.value = build_function_call (expr.value, exprlist); expr.original_code = ERROR_MARK; - if (warn_disallowed_functions) - warn_if_disallowed_function_p (expr.value); break; case CPP_DOT: /* Structure element reference. */ |