diff options
| author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-04-04 15:08:54 +0000 |
|---|---|---|
| committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-04-04 15:08:54 +0000 |
| commit | 9193bd65cc0783a5fc8a85ee46117c0877b5c3df (patch) | |
| tree | 0627a6dc8c3167bfc8f5ebb5919309f95016fef8 /gcc | |
| parent | 074aee7a11834d66813fcb6736e4a99e0de37159 (diff) | |
| download | ppe42-gcc-9193bd65cc0783a5fc8a85ee46117c0877b5c3df.tar.gz ppe42-gcc-9193bd65cc0783a5fc8a85ee46117c0877b5c3df.zip | |
* optimize.c (expand_call_inline): Only add newly inlined statements
into inlined_stmts.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41081 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
| -rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/cp/optimize.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 7821a081267..fe4c12523ec 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2001-04-04 Jakub Jelinek <jakub@redhat.com> + + * optimize.c (expand_call_inline): Only add newly inlined statements + into inlined_stmts. + 2001-04-03 Mark Mitchell <mark@codesourcery.com> * cp-tree.h (OPERATOR_ASSIGN_FORMAT): Remove. diff --git a/gcc/cp/optimize.c b/gcc/cp/optimize.c index f7f957509c2..8f47768f10f 100644 --- a/gcc/cp/optimize.c +++ b/gcc/cp/optimize.c @@ -862,7 +862,7 @@ expand_call_inline (tp, walk_subtrees, data) /* Our function now has more statements than it did before. */ DECL_NUM_STMTS (VARRAY_TREE (id->fns, 0)) += DECL_NUM_STMTS (fn); - id->inlined_stmts += DECL_NUM_STMTS (VARRAY_TREE (id->fns, 0)); + id->inlined_stmts += DECL_NUM_STMTS (fn); /* Recurse into the body of the just inlined function. */ expand_calls_inline (inlined_body, id); |

