This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r144671 - in /branches/diagnostics-branch/gcc: ...
- From: aldyh at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Fri, 06 Mar 2009 13:38:53 -0000
- Subject: r144671 - in /branches/diagnostics-branch/gcc: ...
Author: aldyh
Date: Fri Mar 6 13:38:52 2009
New Revision: 144671
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=144671
Log:
* common.opt (fshow-column): Enable by default.
* tree-vrp.c (check_array_ref): Use warning_at.
(check_array_bounds): Use location from call back if expr has no
location.
* tree.h: Add location argument to maybe_fold_*.
* tree-ssa-ccp.c (ccp_fold): Pass location to maybe_fold_*.
(maybe_fold_offset_to_array_ref): Add location argument and use it.
(maybe_fold_offset_to_component_ref): Same.
(maybe_fold_offset_to_reference): Same.
(maybe_fold_offset_to_address): Same.
(maybe_fold_stmt_indirect): Same.
(maybe_fold_stmt_addition): Same.
(fold_stmt_r): Pass location to maybe_fold_*.
(fold_gimple_assign): Same.
* c-tree.h: Add location argument to finish_decl,
default_function_array_conversion, store_init_value.
* c-decl.c (define_label): Use error_at.
(c_make_fname_decl): Pass location to finish_decl.
(finish_decl): New location argument.
(build_compound_literal): Pass location to store_init_value.
(grokdeclarator): Pass location to finish_decl.
(grokfield): Same.
* c-typeck.c (array_to_pointer_conversion): New location argument.
(function_to_pointer_conversion): Same.
(default_function_array_conversion): Same.
(parser_build_unary_op): Pass location to overflow_warning.
(parser_build_binary_op): Same. Use warning_at.
(build_unary_op): Pass location to array_to_pointer_conversion.
(build_c_cast): Pass location to digest_init.
(build_modify_expr): New location argument.
(convert_for_assignment): Same.
(store_init_value): Same.
(digest_init): Same.
(output_init_element): Pass location to digest_init and
array_to_pointer_conversion.
(c_finish_return): Pass location to convert_for_assignment.
* gimplify.c (gimplify_conversion): Pass location to
maybe_fold_offset_to_address.
* tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Pass location
to maybe_fold_stmt_addition.
* c-omp.c (c_finish_omp_atomic): Pass new location to
build_modify_expr.
(c_finish_omp_for): Same.
* c-common.c (overflow_warning): New argument.
* c-common.h: New argument to build_modify_expr, overflow_warning.
* c-parser.c (c_parser_declaration_or_fndef): Pass location to
finish_decl.
(c_parser_initializer): Pass location to
default_function_array_conversion.
(c_parser_initelt): Same.
(c_parser_initval): Same.
(c_parser_asm_operands): Same.
(c_parser_expr_no_commas): Same. Pass location to build_modify_expr.
(c_parser_conditional_expression): Same.
(c_parser_binary_expression): Add location info to stack. Use it.
(c_parser_unary_expression): Pass location to
default_function_array_conversion, parser_build_unary_op,
build_indirect_ref, c_parser_postfix_expression_after_primary.
(c_parser_postfix_expression_after_primary): New location argument.
Use it.
(c_parser_expression_conv): Pass location to
default_function_array_conversion.
(c_parser_expr_list): Same.
(c_parser_omp_atomic): Same.
(c_parser_omp_for_loop): Same.
Index: testsuite/ChangeLog.diagnostics
* gcc.dg/overflow-warn-1.c: Add column info.
* gcc.dg/c99-tag-3.c: Same.
* gcc.dg/Wredundant-decls-2.c: Same.
* gcc.dg/Warray-bounds.c: Same.
* gcc.dg/func-ptr-conv-1.c: Same.
* gcc.dg/Wcxx-compat-2.c: Same.
* gcc.dg/asm-wide-1.c: Same.
* gcc.dg/cast-function-1.c: Same.
* gcc.dg/array-10.c: Same.
* gcc.dg/c99-vla-jump-1.c: Same.
* gcc.dg/Wshadow-3.c: Same.
Index: objc/ChangeLog.diagnostics
* objc-act.c (finish_var_decl): Pass location to finish_decl.
(objc_get_parm_info): Same.
(get_super_receiver): Same.
Index: cp/ChangeLog.diagnostics
* typeck.c (cp_build_binary_op): Pass location to overflow_warning.
(build_modify_expr): New arg.
* semantics.c (finish_unary_op_expr): Pass location to
overflow_warning.
(handle_omp_for_class_iterator): Pass location to build_modify_expr.
Modified:
branches/diagnostics-branch/gcc/ChangeLog.diagnostics
branches/diagnostics-branch/gcc/c-common.c
branches/diagnostics-branch/gcc/c-common.h
branches/diagnostics-branch/gcc/c-decl.c
branches/diagnostics-branch/gcc/c-omp.c
branches/diagnostics-branch/gcc/c-parser.c
branches/diagnostics-branch/gcc/c-tree.h
branches/diagnostics-branch/gcc/c-typeck.c
branches/diagnostics-branch/gcc/common.opt
branches/diagnostics-branch/gcc/cp/ChangeLog.diagnostics
branches/diagnostics-branch/gcc/cp/semantics.c
branches/diagnostics-branch/gcc/cp/typeck.c
branches/diagnostics-branch/gcc/gimplify.c
branches/diagnostics-branch/gcc/objc/ChangeLog.diagnostics
branches/diagnostics-branch/gcc/objc/objc-act.c
branches/diagnostics-branch/gcc/testsuite/ChangeLog.diagnostics
branches/diagnostics-branch/gcc/testsuite/gcc.dg/Warray-bounds.c
branches/diagnostics-branch/gcc/testsuite/gcc.dg/Wcxx-compat-2.c
branches/diagnostics-branch/gcc/testsuite/gcc.dg/Wredundant-decls-2.c
branches/diagnostics-branch/gcc/testsuite/gcc.dg/Wshadow-3.c
branches/diagnostics-branch/gcc/testsuite/gcc.dg/array-10.c
branches/diagnostics-branch/gcc/testsuite/gcc.dg/asm-wide-1.c
branches/diagnostics-branch/gcc/testsuite/gcc.dg/c99-tag-3.c
branches/diagnostics-branch/gcc/testsuite/gcc.dg/c99-vla-jump-1.c
branches/diagnostics-branch/gcc/testsuite/gcc.dg/cast-function-1.c
branches/diagnostics-branch/gcc/testsuite/gcc.dg/func-ptr-conv-1.c
branches/diagnostics-branch/gcc/testsuite/gcc.dg/overflow-warn-1.c
branches/diagnostics-branch/gcc/tree-ssa-ccp.c
branches/diagnostics-branch/gcc/tree-ssa-forwprop.c
branches/diagnostics-branch/gcc/tree-vrp.c
branches/diagnostics-branch/gcc/tree.h