r142717 - in /branches/diagnostics-branch/gcc: ...

aldyh@gcc.gnu.org aldyh@gcc.gnu.org
Fri Dec 12 17:42:00 GMT 2008


Author: aldyh
Date: Fri Dec 12 17:42:15 2008
New Revision: 142717

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=142717
Log:
        * c-tree.h (check_for_loop_decls, undeclared_variable,
        build_component_ref, build_array_ref, build_external_ref,
        c_expr_sizeof_expr, c_expr_sizeof_type, parser_build_unary_op,
        build_conditional_expr, build_compound_expr, c_cast_expr,
        build_c_cast, build_asm_expr, c_end_compound_stmt, c_finish_stmt_expr,
        c_finish_return, c_finish_omp_parallel, c_finish_omp_task): New
        argument.
        * c-semantics.c (build_stmt): Same.
        (build_case_label): Same.
        * c-decl.c (c_finish_incomplete_decl): Pass location on down.
        (undeclared_variable): New argument.
        (make_label): Same.
        (lookup_label): Pass location on down.
        (define_label): Same.
        (finish_decl): Same.
        (build_compound_literal): Same.
        (finish_struct): Same.
        (finish_function): Do not set location here.
        (check_for_loop_decls): New argument.
        * tree.c (save_expr): Set location.
        (build_empty_stmt): New argument.
        * tree.h (build_empty_stmt): New argument to build_empty_stmt.
        (CAN_HAVE_LOCATION_P): Make sure we have a non empty node.
        * builtins.c (gimplify_va_arg_expr): Use locations.
        (expand_builtin_sync_operation): Same.
        * c-typeck.c (build_component_ref): New argument.
        (build_array_ref): Same.
        (build_external_ref): Same.
        (c_expr_sizeof_expr): Same.
        (c_expr_sizeof_type): Same.
        (parser_build_unary_op): Same.
        (build_conditional_expr): Same.
        (build_compound_expr): Pass location on down.
        (build_compound_expr): New argument.
        (build_c_cast): Same.
        (c_cast_expr): Same.
        (build_asm_expr): Same.
        (c_finish_return): Same.
        (c_process_expr_stmt): Pass location on down.
        (c_finish_stmt_expr): New argument.
        (push_clenaup): Same.
        (c_finish_omp_parallel): Same.
        (c_finish_omp_task): Same.
        * gimplify.c (gimplify_call_expr): Pass location on down.
        * c-omp.c (c_finish_omp_master): New argument.
        (c_finish_omp_critical): Same.
        (c_finish_omp_ordered): Same.
        (c_finish_omp_barrier): Same.
        (-c_finish_omp_taskwait): Same.
        (c_finish_omp_atomic): Same.
        (c_finish_omp_flush): Same.
        * tree-inline.c (copy_tree_body_r): Pass location on down.
        * c-gimplify.c (c_build_bind_expr): New argument.
        * c-common.c (c_common_truthvalue_conversion): Pass location on down.
        (c_sizeof_or_alignof_type): New argument.
        (c_alignof_expr): Same.
        (build_va_arg): Same.
        (c_add_case_label): Same.
        * c-common.h (c_sizeof_or_alignof_type, c_alignof_expr,
        c_sizeof, c_alignof, build_va_arg, build_stmt, build_case_label,
        c_build_bind_expr, objc_build_selector_expr, objc_build_throw_stmt,
        c_finish_omp_master, c_finish_omp_critical, c_finish_omp_ordered,
        c_finish_omp_barrier, c_finish_omp_atomic, c_finish_omp_flush,
        c_finish_omp_taskwait, c_finish_omp_for, c_split_parallel_clauses):
        New argument.
        * stub-objc.c (objc_build_selector_expr): Same.
        (objc_build_throw_stmt): Same.
        * c-parser.c (c_parser_declaration_or_fndef): Pass location on down.
        (c_parser_initelt): Same.
        (c_parser_compound_statement): Same.
        (c_parser_compound_statement_nostart): Same.
        (c_parser_label): Same.
        (c_parser_statement_after_labels): Same.
        (c_parser_if_body): Same.
        (c_parser_else_body): Same.
        (c_parser_if_statement): Same.
        (c_parser_switch_statement): Same.
        (c_parser_while_statement): Same.
        (c_parser_do_statement): Same.
        (c_parser_for_statement): Same.
        (c_parser_asm_statement): Same.
        (c_parser_conditional_expression): Same.
        (c_parser_binary_expression): Same.
        (c_parser_cast_expression): Same.
        (c_parser_unary_expression): Same.
        (c_parser_sizeof_expression): Same.
        (c_parser_alignof_expression): Same.
        (c_parser_postfix_expression): Same.
        (c_parser_expression): Same.
        (c_parser_objc_receiver): Same.
        (c_parser_omp_variable_list): Same.
        (c_parser_omp_structured_block): Same.
        (c_parser_omp_atomic): New argument.
        (c_parser_omp_barrier): Same.
        (c_parser_omp_critical): Same.
        (c_parser_omp_flush): Pass location on down.
        (c_parser_omp_for_loop): New argument.
        (c_parser_omp_for): Same.
        (c_parser_omp_master): Same.
        (c_parser_omp_ordered): Same.
        (c_parser_omp_sections_scope): Same.
        (c_parser_omp_sections): Same.
        (c_parser_omp_parallel): Same.
        (c_parser_omp_single): Same.
        (c_parser_omp_task): Same.
        (c_parser_omp_taskwait): Pass location on down.
        (c_parser_omp_construct): Same.
        (c_parser_omp_threadprivate): Same.

java/
        * java-gimplify.c (java_gimplify_block): New argument to
        build_empty_stmt.
        * expr.c (force_evaluation_order): Same.
objc/
        * objc-act.c (objc_build_component_ref): Pass location to
        build_compound_ref.
        (build_module_initializer_routine): Pass location to
        c_end_compound_stmt.
        (objc_generate_static_init_call): Pass location to build_stmt.
        (build_typed_selector_reference): New location argument.
        (build_selector_reference): Same.
        (objc_substitute_decl): Pass location to build_array_ref.
        (next_sjlj_build_try_catch_finally): Pass location to build_stmt.
        (objc_begin_catch_clause): Same.
        (objc_finish_try_stmt): Same.
        (objc_finish_catch_clause): Pass location to c_end_compound_stmt.
        (objc_build_throw_stmt): New argument.
        (generate_shared_structures): Pass location to build_c_cast.
        (objc_build_message_expr): Use local location.
        (objc_finish_message_expr): Use input_location.
        (build_objc_method_call): New argument.
        (objc_build_selector_expr): Same.
        (get_super_receiver): Pass location to build_c_cast,
        build_modify_expr, build_compound_expr.
testsuite/
        * gcc.dg/gomp/pr27415.c: Move firstprivate diagnostics to correct
        line.
        * gcc.dg/label-decl-2.c: Move label diagnostic to correct line.
objcp/
        * objcp-decl.h (c_end_compound_stmt): New argument.
cp/
        * typeck.c (cxx_sizeof_or_alignof_type): Pass location to
        c_sizeof_or_alignof_type.
        (build_array_ref): New argument.
        (build_compound_expr): Same.
        (build_const_cast): Same.
        (build_ptrmemfunc): Pass location to build_c_cast.
        * init.c (avoid_placement_new_aliasing): Pass location to
        build_stmt.
        (build_vec_delete_1): Pass location to cp_build_modify_expr,
        build_compound_expr.
        * class.c (build_vtbl_ref_1): Pass location to build_array_ref.
        * decl.c (poplevel): Pass location to c_build_bind_expr.
        (finish_case_label): Pass location to build_case_label.
        (finish_constructor_body): Same.
        (finish_destructor_body): Pass location to build_stmt.
        (cxx_maybe_build_cleanup): Same, but to build_compound_expr.
        * call.c (build_new_op): Pass location to build_array_ref.
        (build_x_va_arg): Pass location to build_va_arg.
        * except.c (expand_end_catch_block): Pass location to
        build_stmt.
        * cp-tree.h (build_array_ref): New argument.
        (build_compound_expr): Same.
        (build_c_cast): Same.
        * cp-gimplify.c (gimplify_if_stmt): Pass location on down.
        (gimplify_switch_stmt): Same.
        * typeck2.c (split_nonconstant_init_1): Same.
        * pt.c (tsubst_copy): Same.
        * semantics.c (add_decl_expr): Same.
        (do_poplevel): Same.
        (push_cleanup): Same.
        (finish_goto_stmt): Same.
        (finish_expr_stmt): Same.
        (begin_if_stmt): Same.
        (begin_while_stmt): Same.
        (begin_do_stmt): Same.
        (finish_return_stmt): Same.
        (begin_for_stmt): Same.
        (finish_break_stmt): Same.
        (finish_continue_stmt): Same.
        (begin_switch_stmt): Same.
        (begin_try_block): Same.
        (begin_handler): Same.
        (finish_asm_stmt): Same.
        (finish_label_stmt): Same.
        (finish_stmt_expr_expr): Same.
        (finalize_nrv_r): Same.
        (finish_omp_atomic): Same.
        * name-lookup.c (do_using_directive): Same.
        * decl2.c (grok_array_decl): Same.
        * parser.c (cp_parser_cast_expression): Same.
        (cp_parser_selection_statement): Same.
        (cp_parser_implicitly_scoped_statement): Same.
        (cp_parser_objc_selector_expression): Same.
        (cp_parser_objc_synchronized_statement): Same.
        (cp_parser_objc_throw_statement): Same.
        (cp_parser_omp_critical): Same.
        (cp_parser_omp_master): Same.
fortran/
        * trans-array.c (gfc_trans_allocate_array_storage): Pass
        location on down.
        (gfc_trans_array_constructor_value): Same.
        (gfc_trans_scalarized_loop_end): Same.
        (gfc_conv_ss_startstride): Same.
        (gfc_trans_g77_array): Same.
        (gfc_trans_dummy_array_bias): Same.
        (gfc_conv_array_parameter): Same.
        (structure_alloc_comps): Same.
        * trans-expr.c (gfc_conv_function_call): Same.
        (fill_with_spaces): Same.
        (gfc_trans_string_copy): Same.
        (gfc_trans_scalar_assign): Same.
        * trans-stmt.c (gfc_trans_goto): Same.
        (gfc_trans_if_1): Same.
        (gfc_trans_simple_do): Same.
        (gfc_trans_do): Same.
        (gfc_trans_do_while): Same.
        (gfc_trans_logical_select): Same.
        (gfc_trans_select): Same.
        (gfc_trans_forall_loop): Same.
        (gfc_trans_nested_forall_loop): Same.
        (generate_loop_for_temp_to_lhs): Same.
        (generate_loop_for_rhs_to_temp): Same.
        (gfc_trans_forall_1): Same.
        (gfc_trans_where_assign): Same.
        (gfc_trans_where_3): Same.
        (gfc_trans_allocate): Same.
        * trans.c (gfc_finish_block): Same.
        (gfc_trans_runtime_check): Same.
        (gfc_call_malloc): Same.
        (gfc_allocate_with_status): Same.
        (gfc_call_free): Same.
        (gfc_deallocate_with_status): Same.
        (gfc_call_realloc): Same.
        (gfc_trans_code): Same.
        * trans-decl.c (gfc_init_default_dt): Same.
        (gfc_generate_constructors): Same.
        * trans-io.c (gfc_trans_io_runtime_check): Same.
        * trans-intrinsic.c (gfc_conv_intrinsic_ctime): Same.
        (gfc_conv_intrinsic_fdate): Same.
        (gfc_conv_intrinsic_ttynam): Same.
        (gfc_conv_intrinsic_minmax): Same.
        (gfc_conv_intrinsic_minmax_char): Same.
        (gfc_conv_intrinsic_anyall): Same.
        (gfc_conv_intrinsic_count): Same.
        (gfc_conv_intrinsic_arith): Same.
        (gfc_conv_intrinsic_minmaxloc): Same.
        (gfc_conv_intrinsic_minmaxval): Same.
        (gfc_conv_intrinsic_rrspacing): Same.
        (gfc_conv_intrinsic_array_transfer): Same.
        (gfc_conv_intrinsic_trim): Same.
        (gfc_conv_intrinsic_repeat): Same.


Modified:
    branches/diagnostics-branch/gcc/ChangeLog.diagnostics
    branches/diagnostics-branch/gcc/builtins.c
    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-gimplify.c
    branches/diagnostics-branch/gcc/c-omp.c
    branches/diagnostics-branch/gcc/c-parser.c
    branches/diagnostics-branch/gcc/c-semantics.c
    branches/diagnostics-branch/gcc/c-tree.h
    branches/diagnostics-branch/gcc/c-typeck.c
    branches/diagnostics-branch/gcc/cp/ChangeLog.diagnostics
    branches/diagnostics-branch/gcc/cp/call.c
    branches/diagnostics-branch/gcc/cp/class.c
    branches/diagnostics-branch/gcc/cp/cp-gimplify.c
    branches/diagnostics-branch/gcc/cp/cp-tree.h
    branches/diagnostics-branch/gcc/cp/decl.c
    branches/diagnostics-branch/gcc/cp/decl2.c
    branches/diagnostics-branch/gcc/cp/except.c
    branches/diagnostics-branch/gcc/cp/init.c
    branches/diagnostics-branch/gcc/cp/name-lookup.c
    branches/diagnostics-branch/gcc/cp/parser.c
    branches/diagnostics-branch/gcc/cp/pt.c
    branches/diagnostics-branch/gcc/cp/semantics.c
    branches/diagnostics-branch/gcc/cp/typeck.c
    branches/diagnostics-branch/gcc/cp/typeck2.c
    branches/diagnostics-branch/gcc/fortran/ChangeLog.diagnostics
    branches/diagnostics-branch/gcc/fortran/trans-array.c
    branches/diagnostics-branch/gcc/fortran/trans-decl.c
    branches/diagnostics-branch/gcc/fortran/trans-expr.c
    branches/diagnostics-branch/gcc/fortran/trans-intrinsic.c
    branches/diagnostics-branch/gcc/fortran/trans-io.c
    branches/diagnostics-branch/gcc/fortran/trans-stmt.c
    branches/diagnostics-branch/gcc/fortran/trans.c
    branches/diagnostics-branch/gcc/gimplify.c
    branches/diagnostics-branch/gcc/java/ChangeLog.diagnostics
    branches/diagnostics-branch/gcc/java/expr.c
    branches/diagnostics-branch/gcc/java/java-gimplify.c
    branches/diagnostics-branch/gcc/objc/ChangeLog.diagnostics
    branches/diagnostics-branch/gcc/objc/objc-act.c
    branches/diagnostics-branch/gcc/objcp/ChangeLog.diagnostics
    branches/diagnostics-branch/gcc/objcp/objcp-decl.h
    branches/diagnostics-branch/gcc/stub-objc.c
    branches/diagnostics-branch/gcc/testsuite/ChangeLog.diagnostics
    branches/diagnostics-branch/gcc/testsuite/gcc.dg/gomp/pr27415.c
    branches/diagnostics-branch/gcc/testsuite/gcc.dg/label-decl-2.c
    branches/diagnostics-branch/gcc/tree-inline.c
    branches/diagnostics-branch/gcc/tree.c
    branches/diagnostics-branch/gcc/tree.h



More information about the Gcc-cvs mailing list