From 08d1df96d77abaff247987d5c761292e4595299f Mon Sep 17 00:00:00 2001 From: kazu Date: Tue, 23 Nov 2004 13:44:22 +0000 Subject: [PATCH] * tree-phinode.c (make_phi_node): Use a new variable, capacity, to receive the return value of ideal_phi_node_len. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91091 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 5 +++++ gcc/tree-phinodes.c | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7488b6561a4..23d9ee21417 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-11-23 Kazu Hirata + + * 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 * gthr-solaris.h (__gthread_recursive_mutex_t): New type. diff --git a/gcc/tree-phinodes.c b/gcc/tree-phinodes.c index 031a606d0c6..c8c811c6f1c 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); -- 2.11.4.GIT