diff options
| author | rakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-04-10 21:10:26 +0000 |
|---|---|---|
| committer | rakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-04-10 21:10:26 +0000 |
| commit | 944cca50b05d87e9dceca751a68bf124aac25ab5 (patch) | |
| tree | 0d35f140716547dbc9d0274a277ea5cbf266d09b | |
| parent | d474672960eb68fd20ed5093b7e9ab8ea522bc0c (diff) | |
| download | ppe42-gcc-944cca50b05d87e9dceca751a68bf124aac25ab5.tar.gz ppe42-gcc-944cca50b05d87e9dceca751a68bf124aac25ab5.zip | |
PR tree-optimization/31526
* tree-inline.c (copy_cfg_body): Use last_basic_block instead of
n_basic_blocks to find newly added blocks.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123699 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/ChangeLog | 6 | ||||
| -rw-r--r-- | gcc/tree-inline.c | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9d679409892..5eeadc0482f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2007-04-10 Zdenek Dvorak <dvorakz@suse.cz> + + PR tree-optimization/31526 + * tree-inline.c (copy_cfg_body): Use last_basic_block instead of + n_basic_blocks to find newly added blocks. + 2007-04-10 Uros Bizjak <ubizjak@gmail.com> * config/i386/i386.md (fix_trunc<mode>di_sse): Remove "x" from "xm" diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c index 25844a6701b..b75094f8f7b 100644 --- a/gcc/tree-inline.c +++ b/gcc/tree-inline.c @@ -1205,7 +1205,7 @@ copy_cfg_body (copy_body_data * id, gcov_type count, int frequency, new->aux = bb; } - last = n_basic_blocks; + last = last_basic_block; /* Now that we've duplicated the blocks, duplicate their edges. */ FOR_ALL_BB_FN (bb, cfun_to_copy) copy_edges_for_bb (bb, count_scale); @@ -1219,7 +1219,7 @@ copy_cfg_body (copy_body_data * id, gcov_type count, int frequency, } /* Zero out AUX fields of newly created block during EH edge insertion. */ - for (; last < n_basic_blocks; last++) + for (; last < last_basic_block; last++) BASIC_BLOCK (last)->aux = NULL; entry_block_map->aux = NULL; exit_block_map->aux = NULL; |

