aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2001-04-04 17:08:54 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2001-04-04 17:08:54 +0200
commite59d6709eeadae59bde748d60539f33ae9ac89a4 (patch)
tree0627a6dc8c3167bfc8f5ebb5919309f95016fef8 /gcc
parente33427fa6d5c17748767f5d51620fa947199b143 (diff)
downloadgcc-e59d6709eeadae59bde748d60539f33ae9ac89a4.zip
gcc-e59d6709eeadae59bde748d60539f33ae9ac89a4.tar.gz
gcc-e59d6709eeadae59bde748d60539f33ae9ac89a4.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/optimize.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 7821a08..fe4c125 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 f7f9575..8f47768 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);