tree-ssa-pre.c (init_pre): Use size of ARRAY_REF to allocate reference_node_pool.
authorDiego Novillo <dnovillo@redhat.com>
Fri, 8 Oct 2004 18:02:26 +0000 (18:02 +0000)
committerDiego Novillo <dnovillo@gcc.gnu.org>
Fri, 8 Oct 2004 18:02:26 +0000 (14:02 -0400)
* tree-ssa-pre.c (init_pre): Use size of ARRAY_REF to allocate
reference_node_pool.

From-SVN: r88769

gcc/ChangeLog
gcc/tree-ssa-pre.c

index db4c18e74a8e4636c944d7825181440ff0189985..2b59e0f9029c07e441b94ba9f1699acd90555cfd 100644 (file)
@@ -1,3 +1,8 @@
+2004-10-08  Diego Novillo  <dnovillo@redhat.com>
+
+       * tree-ssa-pre.c (init_pre): Use size of ARRAY_REF to allocate
+       reference_node_pool.
+
 2004-10-08  Kazu Hirata  <kazu@cs.umass.edu>
 
        * tree-cfg.c: Fix a comment typo.
index 3d505b5579be41b90ed59e3ed20587d940c91b88..c5757fb9aee45043fee40d440e995d402237efd3 100644 (file)
@@ -1941,7 +1941,7 @@ init_pre (void)
   unary_node_pool = create_alloc_pool ("Unary tree nodes",
                                       tree_code_size (NEGATE_EXPR), 30);
   reference_node_pool = create_alloc_pool ("Reference tree nodes",
-                                          tree_code_size (COMPONENT_REF), 30);
+                                          tree_code_size (ARRAY_REF), 30);
   FOR_ALL_BB (bb)
     {
       EXP_GEN (bb) = set_new (true);