* tree-cfg.c (thread_jumps): Reduce the size of WORKLIST.
authorKazu Hirata <kazu@cs.umass.edu>
Thu, 2 Dec 2004 16:47:16 +0000 (16:47 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Thu, 2 Dec 2004 16:47:16 +0000 (16:47 +0000)
From-SVN: r91648

gcc/ChangeLog
gcc/tree-cfg.c

index 5e1c3374e5c0986a1cd5ec87964b6ec95edd15ea..e736bfc2fdab4879858b2d417f01ee54d55b693a 100644 (file)
@@ -6,6 +6,8 @@
        * tree-cfg.c (phi_alternatives_equal): Check that PHI_ARG_DEF
        is not null.
 
+       * tree-cfg.c (thread_jumps): Reduce the size of WORKLIST.
+
 2004-12-02  Jeff Law  <law@redhat.com>
 
        * tree-eh.c: Revert yesterday's change.
index 3e046194114d2017be846444897804aa5c2f2470..fc73adc014f9a067e0d89b705ab7f73e64d611c1 100644 (file)
@@ -4106,7 +4106,7 @@ thread_jumps (void)
 {
   basic_block bb;
   bool retval = false;
-  basic_block *worklist = xmalloc (sizeof (basic_block) * last_basic_block);
+  basic_block *worklist = xmalloc (sizeof (basic_block) * n_basic_blocks);
   basic_block *current = worklist;
 
   FOR_EACH_BB (bb)