aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/optimize.c
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>1999-12-14 18:52:40 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>1999-12-14 18:52:40 +0000
commitd7d5e42f2d03fb95b70b605a9c9a0488e0e1ba74 (patch)
treebca049f0a1dd3cb2de3afa255b36071c10242069 /gcc/cp/optimize.c
parent89c6e7ac34e495615ffe46106e955831a723970f (diff)
downloadgcc-d7d5e42f2d03fb95b70b605a9c9a0488e0e1ba74.zip
gcc-d7d5e42f2d03fb95b70b605a9c9a0488e0e1ba74.tar.gz
gcc-d7d5e42f2d03fb95b70b605a9c9a0488e0e1ba74.tar.bz2
cp-tree.h (remap_save_expr): Add walk_subtrees parameter.
* cp-tree.h (remap_save_expr): Add walk_subtrees parameter. * optimize.c (copy_body_r): Pass it. * tree.c (remap_save_expr): Clear walk_subtrees for an already-handled SAVE_EXPR. (cp_unsave_r): Pass walk_subtrees to remap_save_expr. From-SVN: r30926
Diffstat (limited to 'gcc/cp/optimize.c')
-rw-r--r--gcc/cp/optimize.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/cp/optimize.c b/gcc/cp/optimize.c
index ee33886..50ee83e 100644
--- a/gcc/cp/optimize.c
+++ b/gcc/cp/optimize.c
@@ -296,7 +296,8 @@ copy_body_r (tp, walk_subtrees, data)
*tp = new_decl;
}
else if (TREE_CODE (*tp) == SAVE_EXPR)
- remap_save_expr (tp, id->decl_map, VARRAY_TREE (id->fns, 0));
+ remap_save_expr (tp, id->decl_map, VARRAY_TREE (id->fns, 0),
+ walk_subtrees);
else if (TREE_CODE (*tp) == UNSAVE_EXPR)
my_friendly_abort (19991113);
/* For a SCOPE_STMT, we must copy the associated block so that we