tree-phinode.c (make_phi_node): Use a new variable, capacity, to receive the return...
authorKazu Hirata <kazu@cs.umass.edu>
Tue, 23 Nov 2004 13:44:22 +0000 (13:44 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Tue, 23 Nov 2004 13:44:22 +0000 (13:44 +0000)
* tree-phinode.c (make_phi_node): Use a new variable,
capacity, to receive the return value of ideal_phi_node_len.

From-SVN: r91091

gcc/ChangeLog
gcc/tree-phinodes.c

index 7488b6561a43eacf0a51d9d5c7ecde1dfcbc9ca1..23d9ee21417890e27b33beb15adac29b8c0b3548 100644 (file)
@@ -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.
index 031a606d0c63d1cc7476c7d7ac0adcec0fec1e81..c8c811c6f1cb8b9a59ebfab71bafa6a3da6fbbcd 100644 (file)
@@ -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);