diff options
author | Jeff Law <law@redhat.com> | 2005-02-10 10:53:46 -0700 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 2005-02-10 10:53:46 -0700 |
commit | 8d6f71958b3717d3d5d2ef436d4545b067a76ccd (patch) | |
tree | 63d918bec21ef3ec40b3f998ae995624f3cb6ca1 /gcc | |
parent | 0ebbef54ac54768f902376c07e8233f33ec142b5 (diff) | |
download | gcc-8d6f71958b3717d3d5d2ef436d4545b067a76ccd.zip gcc-8d6f71958b3717d3d5d2ef436d4545b067a76ccd.tar.gz gcc-8d6f71958b3717d3d5d2ef436d4545b067a76ccd.tar.bz2 |
tree-ssa-dom.c (thread_across_edge): Use xmalloc, not xcalloc.
* tree-ssa-dom.c (thread_across_edge): Use xmalloc, not xcalloc.
(lookup_avail_expr): Similarly.
From-SVN: r94836
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/tree-ssa-dom.c | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 199bd29..19427c3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/tree-ssa-dom.c b/gcc/tree-ssa-dom.c index 244bfa2..ad8bc53 100644 --- a/gcc/tree-ssa-dom.c +++ b/gcc/tree-ssa-dom.c @@ -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; |