diff options
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/ada/trans.c | 4 | ||||
-rw-r--r-- | gcc/gimplify.c | 2 | ||||
-rw-r--r-- | gcc/langhooks.h | 2 | ||||
-rw-r--r-- | gcc/tree-cfg.c | 4 | ||||
-rw-r--r-- | gcc/tree-inline.c | 2 | ||||
-rw-r--r-- | gcc/tree-nested.c | 4 | ||||
-rw-r--r-- | gcc/tree-ssa-ccp.c | 2 | ||||
-rw-r--r-- | gcc/tree-ssa-dom.c | 2 | ||||
-rw-r--r-- | gcc/tree-ssa-forwprop.c | 2 | ||||
-rw-r--r-- | gcc/tree-ssa-propagate.c | 2 | ||||
-rw-r--r-- | gcc/tree.c | 4 | ||||
-rw-r--r-- | gcc/tree.h | 2 |
13 files changed, 22 insertions, 16 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 389eb46..75d2090 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/ada/trans.c b/gcc/ada/trans.c index 3886229..f8698c5 100644 --- a/gcc/ada/trans.c +++ b/gcc/ada/trans.c @@ -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; } diff --git a/gcc/gimplify.c b/gcc/gimplify.c index 1bd73da..841e3fa 100644 --- a/gcc/gimplify.c +++ b/gcc/gimplify.c @@ -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)); diff --git a/gcc/langhooks.h b/gcc/langhooks.h index cdb547c7..3d97c93 100644 --- a/gcc/langhooks.h +++ b/gcc/langhooks.h @@ -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. */ diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c index c468b64..fd6d1c7 100644 --- a/gcc/tree-cfg.c +++ b/gcc/tree-cfg.c @@ -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); diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c index e26bab6..a0cfb60 100644 --- a/gcc/tree-inline.c +++ b/gcc/tree-inline.c @@ -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; } } diff --git a/gcc/tree-nested.c b/gcc/tree-nested.c index 7f60faa..a4bda9f 100644 --- a/gcc/tree-nested.c +++ b/gcc/tree-nested.c @@ -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 diff --git a/gcc/tree-ssa-ccp.c b/gcc/tree-ssa-ccp.c index 08200ff..39ba4a8 100644 --- a/gcc/tree-ssa-ccp.c +++ b/gcc/tree-ssa-ccp.c @@ -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: diff --git a/gcc/tree-ssa-dom.c b/gcc/tree-ssa-dom.c index 1c7bcbe..49f8147 100644 --- a/gcc/tree-ssa-dom.c +++ b/gcc/tree-ssa-dom.c @@ -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 diff --git a/gcc/tree-ssa-forwprop.c b/gcc/tree-ssa-forwprop.c index a5023ed..c6897ab 100644 --- a/gcc/tree-ssa-forwprop.c +++ b/gcc/tree-ssa-forwprop.c @@ -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); } diff --git a/gcc/tree-ssa-propagate.c b/gcc/tree-ssa-propagate.c index ced23df..c24f72a 100644 --- a/gcc/tree-ssa-propagate.c +++ b/gcc/tree-ssa-propagate.c @@ -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)) { @@ -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: @@ -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); |