This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Hi, Find attached the patch for trunk that creates a wrapper for tree_code_name to ensure that no invalid tree code is passed on to tree_code_name. All occurrences of tree_code_name use now use get_tree_code_name. Touched mep, frv, rs6000, iq2000 backends. Comments? Ok to submit? 2013-10-14 Paulo Matos <pmatos@broadcom.com> * tree.h: Prototype for new function get_tree_code_name. * tree.c: Make tree_code_name static. Define new function wrapper get_tree_code_name. (dump_tree_statistics, tree_check_failed, tree_not_check_failed, tree_class_check_failed, tree_range_check_failed, tree_not_class_check_failed, omp_clause_check_failed, tree_contains_struct_check_failed, tree_operand_check_failed): Use new wrapper get_tree_code_name instead of calling tree_code_name directly. * tree-vrp.c (dump_asserts_for): Use new wrapper get_tree_code_name. * tree-dump.c (dequeue_and_dump): Use new wrapper get_tree_code_name. * tree-pretty-print.c (do_niy, dump_generic_node): Use new wrapper get_tree_code_name. * tree-pretty-print.h (pp_unsupported_tree): Use new wrapper get_tree_code_name. * cp/error.c (code_to_string): Use new wrapper get_tree_code_name. * cp/cxx-pretty-print.c (pp_cxx_assignment_operator): Use new wrapper get_tree_code_name. * cp/pt.c (tsubst): Use new wrapper get_tree_code_name. * cp/semantics.c (cxx_eval_constant_expression, potential_constant_expression_1): Use new wrapper get_tree_code_name. * cp/mangle.c (MANGLE_TRACE_TREE, dump_substitution_candidates, add_substitution, find_substitution): Use new wrapper get_tree_code_name. * lto-streamer-out.c (lto_write_tree, DFS_write_tree): Use new wrapper get_tree_code_name. * tree-ssa-dom.c (print_expr_hash_elt): Use new wrapper get_tree_code_name. * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs, dump_ternary_rhs, dump_gimple_assign, dump_gimple_cond, dump_gimple_omp_for): Use new wrapper get_tree_code_name. * tree-vect-data-refs.c (vect_create_data_ref_ptr): Use new wrapper get_tree_code_name. * tree-ssa-pre.c (print_pre_expr): Use new wrapper get_tree_code_name. * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Use new wrapper get_tree_code_name. * print-tree.c (print_node_brief, print_node): Use new wrapper get_tree_code_name. * gimple.c (gimple_check_failed): Use new wrapper get_tree_code_name. * tree-core.h: Remove extern declaration of tree_code_name. * config/frv/frv.c (frv_init_cumulative_args): Use new wrapper get_tree_code_name. * config/mep/mep.c (mep_validate_vliw): Use new wrapper get_tree_code_name. * config/iq2000/iq2000.c (init_cumulative_args): Use new wrapper get_tree_code_name. * config/rs6000/rs6000.c (init_cumulative_args): Use new wrapper get_tree_code_name. * lto-streamer.c (lto_tag_name, print_lto_report): Use new wrapper get_tree_code_name. -- Paulo Matos
Attachment:
tree_code_name.patch
Description: tree_code_name.patch
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |