diff options
author | Kenneth Zadeck <zadeck@naturalbridge.com> | 2007-11-16 21:39:08 +0000 |
---|---|---|
committer | Kenneth Zadeck <zadeck@naturalbridge.com> | 2007-11-16 21:39:08 +0000 |
commit | ec86d9d079bfd446ffdf2adf18c119a2fee392d1 (patch) | |
tree | a702fb8f80dfdc5734f258a99108292315b3e58a | |
parent | 5119213db2193c3419e6e3278637b8eff8ab2aeb (diff) |
2007-11-16 Kenneth Zadeck <zadeck@naturalbridge.com>
* lto-read.c (make_new_block, input_cfg): Properly set
n_basic_blocks.
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/lto@130239 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/lto/lto-read.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/lto/lto-read.c b/gcc/lto/lto-read.c index 1e71e884272..95a1cd3b7de 100644 --- a/gcc/lto/lto-read.c +++ b/gcc/lto/lto-read.c @@ -1395,6 +1395,7 @@ make_new_block (struct function *fn, unsigned int index) bb->index = index; SET_BASIC_BLOCK_FOR_FUNCTION (fn, index, bb); bb->il.tree = GGC_CNEW (struct tree_bb_info); + n_basic_blocks_for_function (fn)++; bb->flags = 0; set_bb_stmt_list (bb, alloc_stmt_list ()); return bb; @@ -1417,7 +1418,7 @@ input_cfg (struct input_block *ib, struct function *fn) bb_count = input_uleb128 (ib); profile_status_for_function (fn) = PROFILE_ABSENT; - n_basic_blocks_for_function (fn) = bb_count; + n_basic_blocks_for_function (fn) = NUM_FIXED_BLOCKS; last_basic_block_for_function (fn) = bb_count; basic_block_info_for_function (fn) = VEC_alloc (basic_block, gc, bb_count); |