+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.
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
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);