diff options
author | Kazu Hirata <kazu@cs.umass.edu> | 2004-11-23 13:44:22 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2004-11-23 13:44:22 +0000 |
commit | 405f403a0903740e263aad309780dbd4932d0878 (patch) | |
tree | 3fb02d173413e77a88c1c412aa37c2e62cddba23 | |
parent | a3407e423920a7233e038318adc6dc246ba272dd (diff) | |
download | gcc-405f403a0903740e263aad309780dbd4932d0878.zip gcc-405f403a0903740e263aad309780dbd4932d0878.tar.gz gcc-405f403a0903740e263aad309780dbd4932d0878.tar.bz2 |
tree-phinode.c (make_phi_node): Use a new variable, capacity, to receive the return value of ideal_phi_node_len.
* tree-phinode.c (make_phi_node): Use a new variable,
capacity, to receive the return value of ideal_phi_node_len.
From-SVN: r91091
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/tree-phinodes.c | 7 |
2 files changed, 9 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7488b65..23d9ee2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-11-23 Kazu Hirata <kazu@cs.umass.edu> + + * tree-phinode.c (make_phi_node): Use a new variable, + capacity, to receive the return value of ideal_phi_node_len. + 2004-11-23 Eric Botcazou <ebotcazou@libertysurf.fr> * gthr-solaris.h (__gthread_recursive_mutex_t): New type. diff --git a/gcc/tree-phinodes.c b/gcc/tree-phinodes.c index 031a606..c8c811c 100644 --- a/gcc/tree-phinodes.c +++ b/gcc/tree-phinodes.c @@ -206,10 +206,11 @@ static tree make_phi_node (tree var, int len) { tree phi; + int capacity; - len = ideal_phi_node_len (len); + capacity = ideal_phi_node_len (len); - phi = allocate_phi_node (len); + phi = allocate_phi_node (capacity); /* We do not have to clear a part of the PHI node that stores PHI arguments, which is safe because we tell the garbage collector to @@ -218,7 +219,7 @@ make_phi_node (tree var, int len) pointers in the unused portion of the array. */ memset (phi, 0, sizeof (struct tree_phi_node) - sizeof (struct phi_arg_d)); TREE_SET_CODE (phi, PHI_NODE); - PHI_ARG_CAPACITY (phi) = len; + PHI_ARG_CAPACITY (phi) = capacity; TREE_TYPE (phi) = TREE_TYPE (var); if (TREE_CODE (var) == SSA_NAME) SET_PHI_RESULT (phi, var); |