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]

Rename recompute_tree_invarant_for_addr_expr


Fixes a 2 year old typo.  Spent a few seconds scratching my head wondering 
grep wasn't finding this function.

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.

Index: tree.c
===================================================================
--- tree.c	(revision 108313)
+++ tree.c	(working copy)
@@ -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 t
 
     case ADDR_EXPR:
       if (node)
-	recompute_tree_invarant_for_addr_expr (t);
+	recompute_tree_invariant_for_addr_expr (t);
       break;
 
     default:
Index: tree.h
===================================================================
--- tree.h	(revision 108313)
+++ tree.h	(working copy)
@@ -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);
Index: tree-ssa-ccp.c
===================================================================
--- tree-ssa-ccp.c	(revision 108313)
+++ tree-ssa-ccp.c	(working copy)
@@ -1958,7 +1958,7 @@ fold_stmt_r (tree *expr_p, int *walk_sub
       /* 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: tree-ssa-dom.c
===================================================================
--- tree-ssa-dom.c	(revision 108313)
+++ tree-ssa-dom.c	(working copy)
@@ -2955,7 +2955,7 @@ optimize_stmt (struct dom_walk_data *wal
 
       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: tree-ssa-propagate.c
===================================================================
--- tree-ssa-propagate.c	(revision 108313)
+++ tree-ssa-propagate.c	(working copy)
@@ -1160,7 +1160,7 @@ substitute_and_fold (prop_value_t *prop_
 
 	      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: ada/trans.c
===================================================================
--- ada/trans.c	(revision 108313)
+++ ada/trans.c	(working copy)
@@ -4622,7 +4622,7 @@ gnat_gimplify_expr (tree *expr_p, tree *
 	  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 *
 
 	  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: langhooks.h
===================================================================
--- langhooks.h	(revision 108313)
+++ langhooks.h	(working copy)
@@ -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: gimplify.c
===================================================================
--- gimplify.c	(revision 108313)
+++ gimplify.c	(working copy)
@@ -3611,7 +3611,7 @@ gimplify_addr_expr (tree *expr_p, tree *
 
 	  /* 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: tree-ssa-forwprop.c
===================================================================
--- tree-ssa-forwprop.c	(revision 108313)
+++ tree-ssa-forwprop.c	(working copy)
@@ -452,7 +452,7 @@ tidy_after_forward_propagate_addr (tree 
     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: tree-nested.c
===================================================================
--- tree-nested.c	(revision 108313)
+++ tree-nested.c	(working copy)
@@ -885,7 +885,7 @@ convert_nonlocal_reference (tree *tp, in
 	       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 *
 	    
 	  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: tree-inline.c
===================================================================
--- tree-inline.c	(revision 108313)
+++ tree-inline.c	(working copy)
@@ -704,7 +704,7 @@ copy_body_r (tree *tp, int *walk_subtree
       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: tree-cfg.c
===================================================================
--- tree-cfg.c	(revision 108313)
+++ tree-cfg.c	(working copy)
@@ -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_subtree
 	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 Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]