tree.c (recompute_tree_invariant_for_addr_expr): Rename from recompute_tree_invarant_for_addr_expr.

* tree.c (recompute_tree_invariant_for_addr_expr): Rename from
	recompute_tree_invarant_for_addr_expr.
	Update uses everywhere.

From-SVN: r108316
This commit is contained in:
Diego Novillo 2005-12-09 19:24:28 +00:00 committed by Diego Novillo
parent 63ff35769c
commit 127203ac0c
13 changed files with 22 additions and 16 deletions

View File

@ -1,3 +1,9 @@
2005-12-09 Diego Novillo <dnovillo@redhat.com>
* tree.c (recompute_tree_invariant_for_addr_expr): Rename from
recompute_tree_invarant_for_addr_expr.
Update uses everywhere.
2005-12-09 Aldy Hernandez <aldyh@redhat.com>
* config/ms1/t-ms1 (MULTILIB_OPTIONS): Define.

View File

@ -4622,7 +4622,7 @@ gnat_gimplify_expr (tree *expr_p, tree *pre_p, tree *post_p ATTRIBUTE_UNUSED)
DECL_INITIAL (new_var) = op;
TREE_OPERAND (expr, 0) = new_var;
recompute_tree_invarant_for_addr_expr (expr);
recompute_tree_invariant_for_addr_expr (expr);
return GS_ALL_DONE;
}
@ -4646,7 +4646,7 @@ gnat_gimplify_expr (tree *expr_p, tree *pre_p, tree *post_p ATTRIBUTE_UNUSED)
gimplify_and_add (mod, pre_p);
TREE_OPERAND (expr, 0) = new_var;
recompute_tree_invarant_for_addr_expr (expr);
recompute_tree_invariant_for_addr_expr (expr);
return GS_ALL_DONE;
}

View File

@ -3611,7 +3611,7 @@ gimplify_addr_expr (tree *expr_p, tree *pre_p, tree *post_p)
/* Make sure TREE_INVARIANT, TREE_CONSTANT, and TREE_SIDE_EFFECTS
is set properly. */
recompute_tree_invarant_for_addr_expr (expr);
recompute_tree_invariant_for_addr_expr (expr);
/* Mark the RHS addressable. */
lang_hooks.mark_addressable (TREE_OPERAND (expr, 0));

View File

@ -415,7 +415,7 @@ struct lang_hooks
/* Used to set up the tree_contains_structure array for a frontend. */
void (*init_ts) (void);
/* Called by recompute_tree_invarant_for_addr_expr to go from EXPR
/* Called by recompute_tree_invariant_for_addr_expr to go from EXPR
to a contained expression or DECL, possibly updating *TC, *TI or
*SE if in the process TREE_CONSTANT, TREE_INVARIANT or
TREE_SIDE_EFFECTS need updating. */

View File

@ -1270,7 +1270,7 @@ replace_uses_by (tree name, tree val)
rhs = get_rhs (stmt);
if (TREE_CODE (rhs) == ADDR_EXPR)
recompute_tree_invarant_for_addr_expr (rhs);
recompute_tree_invariant_for_addr_expr (rhs);
/* If the statement could throw and now cannot, we need to prune cfg. */
if (maybe_clean_or_replace_eh_stmt (stmt, stmt))
@ -3193,7 +3193,7 @@ verify_expr (tree *tp, int *walk_subtrees, void *data ATTRIBUTE_UNUSED)
old_constant = TREE_CONSTANT (t);
old_side_effects = TREE_SIDE_EFFECTS (t);
recompute_tree_invarant_for_addr_expr (t);
recompute_tree_invariant_for_addr_expr (t);
new_invariant = TREE_INVARIANT (t);
new_side_effects = TREE_SIDE_EFFECTS (t);
new_constant = TREE_CONSTANT (t);

View File

@ -704,7 +704,7 @@ copy_body_r (tree *tp, int *walk_subtrees, void *data)
else if (TREE_CODE (*tp) == ADDR_EXPR)
{
walk_tree (&TREE_OPERAND (*tp, 0), copy_body_r, id, NULL);
recompute_tree_invarant_for_addr_expr (*tp);
recompute_tree_invariant_for_addr_expr (*tp);
*walk_subtrees = 0;
}
}

View File

@ -885,7 +885,7 @@ convert_nonlocal_reference (tree *tp, int *walk_subtrees, void *data)
since we're no longer directly referencing a decl. */
save_context = current_function_decl;
current_function_decl = info->context;
recompute_tree_invarant_for_addr_expr (t);
recompute_tree_invariant_for_addr_expr (t);
current_function_decl = save_context;
/* If the callback converted the address argument in a context
@ -1016,7 +1016,7 @@ convert_local_reference (tree *tp, int *walk_subtrees, void *data)
save_context = current_function_decl;
current_function_decl = info->context;
recompute_tree_invarant_for_addr_expr (t);
recompute_tree_invariant_for_addr_expr (t);
current_function_decl = save_context;
/* If we are in a context where we only accept values, then

View File

@ -1958,7 +1958,7 @@ fold_stmt_r (tree *expr_p, int *walk_subtrees, void *data)
/* Set TREE_INVARIANT properly so that the value is properly
considered constant, and so gets propagated as expected. */
if (*changed_p)
recompute_tree_invarant_for_addr_expr (expr);
recompute_tree_invariant_for_addr_expr (expr);
return NULL_TREE;
case PLUS_EXPR:

View File

@ -2955,7 +2955,7 @@ optimize_stmt (struct dom_walk_data *walk_data ATTRIBUTE_UNUSED,
rhs = get_rhs (stmt);
if (rhs && TREE_CODE (rhs) == ADDR_EXPR)
recompute_tree_invarant_for_addr_expr (rhs);
recompute_tree_invariant_for_addr_expr (rhs);
/* Constant/copy propagation above may change the set of
virtual operands associated with this statement. Folding

View File

@ -452,7 +452,7 @@ tidy_after_forward_propagate_addr (tree stmt)
cfg_changed = true;
if (TREE_CODE (TREE_OPERAND (stmt, 1)) == ADDR_EXPR)
recompute_tree_invarant_for_addr_expr (TREE_OPERAND (stmt, 1));
recompute_tree_invariant_for_addr_expr (TREE_OPERAND (stmt, 1));
update_stmt (stmt);
}

View File

@ -1160,7 +1160,7 @@ substitute_and_fold (prop_value_t *prop_value, bool use_ranges_p)
rhs = get_rhs (stmt);
if (TREE_CODE (rhs) == ADDR_EXPR)
recompute_tree_invarant_for_addr_expr (rhs);
recompute_tree_invariant_for_addr_expr (rhs);
if (dump_file && (dump_flags & TDF_DETAILS))
{

View File

@ -2622,7 +2622,7 @@ stabilize_reference_1 (tree e)
TREE_INVARIANT, and TREE_SIDE_EFFECTS for an ADDR_EXPR. */
void
recompute_tree_invarant_for_addr_expr (tree t)
recompute_tree_invariant_for_addr_expr (tree t)
{
tree node;
bool tc = true, ti = true, se = false;
@ -2797,7 +2797,7 @@ build1_stat (enum tree_code code, tree type, tree node MEM_STAT_DECL)
case ADDR_EXPR:
if (node)
recompute_tree_invarant_for_addr_expr (t);
recompute_tree_invariant_for_addr_expr (t);
break;
default:

View File

@ -3952,7 +3952,7 @@ extern void expand_function_end (void);
extern void expand_function_start (tree);
extern void stack_protect_prologue (void);
extern void stack_protect_epilogue (void);
extern void recompute_tree_invarant_for_addr_expr (tree);
extern void recompute_tree_invariant_for_addr_expr (tree);
extern bool is_global_var (tree t);
extern bool needs_to_live_in_memory (tree);
extern tree reconstruct_complex_type (tree, tree);