optimize.c (expand_call_inline): Only add newly inlined statements into inlined_stmts.
authorJakub Jelinek <jakub@redhat.com>
Wed, 4 Apr 2001 15:08:54 +0000 (17:08 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 4 Apr 2001 15:08:54 +0000 (17:08 +0200)
* optimize.c (expand_call_inline): Only add newly inlined statements
into inlined_stmts.

From-SVN: r41081

gcc/cp/ChangeLog
gcc/cp/optimize.c

index 7821a081267a700ab098fe4c7287ab0d70d03dd6..fe4c12523ec4d040bc0ae5c4416ad57fb19d6e63 100644 (file)
@@ -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.
index f7f957509c28a8b6015ed2d50a1dbea75837c878..8f47768f10f96fd55bb4d85a7c118ca8fc9d862d 100644 (file)
@@ -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);