From e59d6709eeadae59bde748d60539f33ae9ac89a4 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Wed, 4 Apr 2001 17:08:54 +0200 Subject: [PATCH] optimize.c (expand_call_inline): Only add newly inlined statements into inlined_stmts. * optimize.c (expand_call_inline): Only add newly inlined statements into inlined_stmts. From-SVN: r41081 --- gcc/cp/ChangeLog | 5 +++++ gcc/cp/optimize.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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 + + * optimize.c (expand_call_inline): Only add newly inlined statements + into inlined_stmts. + 2001-04-03 Mark Mitchell * 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); -- 2.30.2