From: rguenth Date: Thu, 29 Mar 2012 12:47:51 +0000 (+0000) Subject: 2012-03-29 Richard Guenther X-Git-Tag: upstream/4.9.2~13523 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=54879eeceebde4f4bc238b40daed4ab3035fcda9;p=platform%2Fupstream%2Flinaro-gcc.git 2012-03-29 Richard Guenther * tree-flow.h (struct pre_expr_d): Remove forward declaration. (add_to_value): Remove. (print_value_expressions): Likewise. * tree-ssa-pre.c (add_to_value): Make static. (print_value_expressions): Likewise. * gimple.h (gimple_adjust_this_by_delta): Remove. * gimple-fold.c (gimple_adjust_this_by_delta): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185956 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0c2d199..0d75540 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,15 @@ 2012-03-29 Richard Guenther + * tree-flow.h (struct pre_expr_d): Remove forward declaration. + (add_to_value): Remove. + (print_value_expressions): Likewise. + * tree-ssa-pre.c (add_to_value): Make static. + (print_value_expressions): Likewise. + * gimple.h (gimple_adjust_this_by_delta): Remove. + * gimple-fold.c (gimple_adjust_this_by_delta): Likewise. + +2012-03-29 Richard Guenther + PR middle-end/50708 * double-int.h (rshift_double): Remove. * double-int.c (lshift_double): Use absu_hwi to make count diff --git a/gcc/gimple-fold.c b/gcc/gimple-fold.c index a1eba65..6ad81dd 100644 --- a/gcc/gimple-fold.c +++ b/gcc/gimple-fold.c @@ -978,29 +978,6 @@ gimple_fold_builtin (gimple stmt) return result; } -/* Generate code adjusting the first parameter of a call statement determined - by GSI by DELTA. */ - -void -gimple_adjust_this_by_delta (gimple_stmt_iterator *gsi, tree delta) -{ - gimple call_stmt = gsi_stmt (*gsi); - tree parm, tmp; - gimple new_stmt; - - delta = convert_to_ptrofftype (delta); - gcc_assert (gimple_call_num_args (call_stmt) >= 1); - parm = gimple_call_arg (call_stmt, 0); - gcc_assert (POINTER_TYPE_P (TREE_TYPE (parm))); - tmp = create_tmp_var (TREE_TYPE (parm), NULL); - add_referenced_var (tmp); - - tmp = make_ssa_name (tmp, NULL); - new_stmt = gimple_build_assign_with_ops (POINTER_PLUS_EXPR, tmp, parm, delta); - SSA_NAME_DEF_STMT (tmp) = new_stmt; - gsi_insert_before (gsi, new_stmt, GSI_SAME_STMT); - gimple_call_set_arg (call_stmt, 0, tmp); -} /* Return a binfo to be used for devirtualization of calls based on an object represented by a declaration (i.e. a global or automatically allocated one) diff --git a/gcc/gimple.h b/gcc/gimple.h index 92edd18..167bc73 100644 --- a/gcc/gimple.h +++ b/gcc/gimple.h @@ -960,7 +960,6 @@ unsigned get_gimple_rhs_num_ops (enum tree_code); gimple gimple_alloc_stat (enum gimple_code, unsigned MEM_STAT_DECL); const char *gimple_decl_printable_name (tree, int); tree gimple_get_virt_method_for_binfo (HOST_WIDE_INT, tree); -void gimple_adjust_this_by_delta (gimple_stmt_iterator *, tree); tree gimple_extract_devirt_binfo_from_cst (tree); /* Returns true iff T is a valid GIMPLE statement. */ extern bool is_gimple_stmt (tree); diff --git a/gcc/tree-flow.h b/gcc/tree-flow.h index 319be2b..3dd6a7d 100644 --- a/gcc/tree-flow.h +++ b/gcc/tree-flow.h @@ -794,10 +794,7 @@ extern bool verify_eh_dispatch_edge (gimple); extern void maybe_remove_unreachable_handlers (void); /* In tree-ssa-pre.c */ -struct pre_expr_d; -void add_to_value (unsigned int, struct pre_expr_d *); void debug_value_expressions (unsigned int); -void print_value_expressions (FILE *, unsigned int); /* In tree-ssa-sink.c */ bool is_hidden_global_store (gimple); diff --git a/gcc/tree-ssa-pre.c b/gcc/tree-ssa-pre.c index 3f17e8b..6a2ce64 100644 --- a/gcc/tree-ssa-pre.c +++ b/gcc/tree-ssa-pre.c @@ -587,7 +587,7 @@ phi_trans_add (pre_expr e, pre_expr v, basic_block pred) /* Add expression E to the expression set of value id V. */ -void +static void add_to_value (unsigned int v, pre_expr e) { bitmap_set_t set; @@ -1031,7 +1031,7 @@ debug_bitmap_set (bitmap_set_t set) /* Print out the expressions that have VAL to OUTFILE. */ -void +static void print_value_expressions (FILE *outfile, unsigned int val) { bitmap_set_t set = VEC_index (bitmap_set_t, value_expressions, val);