tree-ssa-dom.c (thread_across_edge): Use xmalloc, not xcalloc.
authorJeff Law <law@redhat.com>
Thu, 10 Feb 2005 17:53:46 +0000 (10:53 -0700)
committerJeff Law <law@gcc.gnu.org>
Thu, 10 Feb 2005 17:53:46 +0000 (10:53 -0700)
        * tree-ssa-dom.c (thread_across_edge): Use xmalloc, not xcalloc.
        (lookup_avail_expr): Similarly.

From-SVN: r94836

gcc/ChangeLog
gcc/tree-ssa-dom.c

index 199bd29edf042f9740a7712cb7178b0cb7f5b89c..19427c3d5f845be58ab8692f4d0e44ad744e4476 100644 (file)
@@ -1,3 +1,8 @@
+2005-02-10  Jeff Law  <law@redhat.com>
+
+       * tree-ssa-dom.c (thread_across_edge): Use xmalloc, not xcalloc.
+       (lookup_avail_expr): Similarly.
+
 2005-02-10  Richard Guenther  <rguenth@gcc.gnu.org>
 
        * builtins.c (fold_builtin_powi): New function.
index 244bfa2b0f04a9cba9aa90b35a5c5426b9ec210b..ad8bc53718f243caf3d4ccd3fbd185764a3877ff 100644 (file)
@@ -603,8 +603,8 @@ thread_across_edge (struct dom_walk_data *walk_data, edge e)
          stmt_ann_t ann = stmt_ann (stmt);
          use_optype uses = USE_OPS (ann);
          vuse_optype vuses = VUSE_OPS (ann);
-         tree *uses_copy = xcalloc (NUM_USES (uses),  sizeof (tree));
-         tree *vuses_copy = xcalloc (NUM_VUSES (vuses), sizeof (tree));
+         tree *uses_copy = xmalloc (NUM_USES (uses) * sizeof (tree));
+         tree *vuses_copy = xmalloc (NUM_VUSES (vuses) * sizeof (tree));
          unsigned int i;
 
          /* Make a copy of the uses into USES_COPY, then cprop into
@@ -3106,7 +3106,7 @@ lookup_avail_expr (tree stmt, bool insert)
   void **slot;
   tree lhs;
   tree temp;
-  struct expr_hash_elt *element = xcalloc (sizeof (struct expr_hash_elt), 1);
+  struct expr_hash_elt *element = xmalloc (sizeof (struct expr_hash_elt));
 
   lhs = TREE_CODE (stmt) == MODIFY_EXPR ? TREE_OPERAND (stmt, 0) : NULL;