OSDN Git Service

* tree-cfg.c (thread_jumps): Reduce the size of WORKLIST.
authorkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 2 Dec 2004 16:47:16 +0000 (16:47 +0000)
committerkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 2 Dec 2004 16:47:16 +0000 (16:47 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91648 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/tree-cfg.c

index 5e1c337..e736bfc 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 3e04619..fc73adc 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)