* tree.c (recompute_tree_invariant_for_addr_expr): Rename from
authordnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 9 Dec 2005 19:24:28 +0000 (19:24 +0000)
committerdnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 9 Dec 2005 19:24:28 +0000 (19:24 +0000)
recompute_tree_invarant_for_addr_expr.
Update uses everywhere.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@108316 138bc75d-0d04-0410-961f-82ee72b054a4

13 files changed:
gcc/ChangeLog
gcc/ada/trans.c
gcc/gimplify.c
gcc/langhooks.h
gcc/tree-cfg.c
gcc/tree-inline.c
gcc/tree-nested.c
gcc/tree-ssa-ccp.c
gcc/tree-ssa-dom.c
gcc/tree-ssa-forwprop.c
gcc/tree-ssa-propagate.c
gcc/tree.c
gcc/tree.h

index 389eb46..75d2090 100644 (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.
index 3886229..f8698c5 100644 (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;
        }
 
index 1bd73da..841e3fa 100644 (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));
index cdb547c..3d97c93 100644 (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.  */
index c468b64..fd6d1c7 100644 (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);
index e26bab6..a0cfb60 100644 (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;
        }
     }
index 7f60faa..a4bda9f 100644 (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
index 08200ff..39ba4a8 100644 (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:
index 1c7bcbe..49f8147 100644 (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
index a5023ed..c6897ab 100644 (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);
 }
index ced23df..c24f72a 100644 (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))
                {
index 42da689..5e99305 100644 (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:
index 01e086d..6c20db8 100644 (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);