From c54092492e15aeccc804c24f70b806ce4bb8cd1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20L=C3=B3pez-Ib=C3=A1=C3=B1ez?= Date: Wed, 17 Oct 2007 00:11:25 +0000 Subject: builtins.c (gimplify_va_arg_expr): Use inform for help message. 2007-10-17 Manuel Lopez-Ibanez * builtins.c (gimplify_va_arg_expr): Use inform for help message. * toplev.c (check_global_declaration_1): Use appropriate warning option instead of unnamed warning. * stor-layout.c (layout_decl): Likewise. * c-typeck.c (build_conditional_expr): Likewise. (build_compound_expr): Fix wrong comment. (build_binary_op): Use appropriate warning option instead of unnamed warning. * cfgexpand.c (tree_expand_cfg): Likewise. * tree-optimize.c (tree_rest_of_compilation): Likewise. * tree-cfg.c (remove_useless_stmts_warn_notreached): Likewise. (execute_warn_function_return): Likewise. * stmt.c (warn_if_unused_value): Likewise. cp/ * typeck.c (build_binary_op) : Use appropriate warning option instead of unnamed warning. From-SVN: r129393 --- gcc/cfgexpand.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'gcc/cfgexpand.c') diff --git a/gcc/cfgexpand.c b/gcc/cfgexpand.c index e550a4c..769483b 100644 --- a/gcc/cfgexpand.c +++ b/gcc/cfgexpand.c @@ -1877,9 +1877,11 @@ tree_expand_cfg (void) if (warn_stack_protect) { if (current_function_calls_alloca) - warning (0, "not protecting local variables: variable length buffer"); + warning (OPT_Wstack_protector, + "not protecting local variables: variable length buffer"); if (has_short_buffer && !cfun->stack_protect_guard) - warning (0, "not protecting function: no buffer at least %d bytes long", + warning (OPT_Wstack_protector, + "not protecting function: no buffer at least %d bytes long", (int) PARAM_VALUE (PARAM_SSP_BUFFER_SIZE)); } -- cgit v1.1