OSDN Git Service

PR middle-end/52463
authoraldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 6 Mar 2012 14:44:27 +0000 (14:44 +0000)
committeraldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 6 Mar 2012 14:44:27 +0000 (14:44 +0000)
* trans-mem.c (tm_region_init): Use last_basic_block.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@184992 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/trans-mem.c

index 56ef72e..97893f7 100644 (file)
@@ -1868,7 +1868,7 @@ tm_region_init (struct tm_region *region)
      using bb->aux.  */
   region_worklist =
     (struct tm_region **) xcalloc (sizeof (struct tm_region *),
-                                 n_basic_blocks + NUM_FIXED_BLOCKS + 2);
+                                 last_basic_block + NUM_FIXED_BLOCKS);
 
   VEC_safe_push (basic_block, heap, queue, bb);
   region_worklist[bb->index] = region;