diff options
author | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-09-05 07:31:27 +0000 |
---|---|---|
committer | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-09-05 07:31:27 +0000 |
commit | 39adccd68fd760a586eb2b7f885b615acefe0981 (patch) | |
tree | 725343e2ca5ef39491e3d69fbb346fbb1fac15b5 /gcc/cp/optimize.c | |
parent | ec53a6f83c91be7a464a74224825e8b1e4e70406 (diff) | |
download | gcc-39adccd68fd760a586eb2b7f885b615acefe0981.tar.gz |
* Makefile.in (CXX_TREE_H): Add dependency on HTAB_H.
(pt.o): Remove dependency on HTAB_H.
* cp-tree.h: Include hashtab.h.
(walk_tree): Change prototype.
(walk_tree_without_duplicates): New function.
* decl.c (check_default_argument): Use it.
* optimize.c (remap_decl): Adjust calls to walk_tree.
(copy_body): Likewise.
(expand_calls_inline): Likewise.
(calls_setjmp_p): Use walk_tree_without_duplicates.
* pt.c: Don't include hashtab.h.
(for_each_template_parm): Use walk_tree_without_duplicates.
* semantics.c (finish-stmt_tree): Likewise.
(expand_body): Likewise.
* tree.c (walk_tree): Add additional parameter.
(walk_tree_without_duplicates): New function.
(count_trees): Use it.
(verify_stmt_tree): Adjust call to walk_tree.
(find_tree): Use walk_tree_without_duplicates.
(no_linkage_check): Likewise.
(break_out_target_exprs): Adjust call to walk_tree.
(cp_unsave): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36155 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/optimize.c')
-rw-r--r-- | gcc/cp/optimize.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/gcc/cp/optimize.c b/gcc/cp/optimize.c index c9898b8ace0..d80877c2045 100644 --- a/gcc/cp/optimize.c +++ b/gcc/cp/optimize.c @@ -109,8 +109,8 @@ remap_decl (decl, id) /* The decl T could be a dynamic array or other variable size type, in which case some fields need to be remapped because they may contain SAVE_EXPRs. */ - walk_tree (&DECL_SIZE (t), copy_body_r, id); - walk_tree (&DECL_SIZE_UNIT (t), copy_body_r, id); + walk_tree (&DECL_SIZE (t), copy_body_r, id, NULL); + walk_tree (&DECL_SIZE_UNIT (t), copy_body_r, id, NULL); if (TREE_TYPE (t) && TREE_CODE (TREE_TYPE (t)) == ARRAY_TYPE && TYPE_DOMAIN (TREE_TYPE (t))) { @@ -118,7 +118,7 @@ remap_decl (decl, id) TYPE_DOMAIN (TREE_TYPE (t)) = copy_node (TYPE_DOMAIN (TREE_TYPE (t))); walk_tree (&TYPE_MAX_VALUE (TYPE_DOMAIN (TREE_TYPE (t))), - copy_body_r, id); + copy_body_r, id, NULL); } /* Remember it, so that if we encounter this local entity @@ -356,7 +356,7 @@ copy_body (id) tree body; body = DECL_SAVED_TREE (VARRAY_TOP_TREE (id->fns)); - walk_tree (&body, copy_body_r, id); + walk_tree (&body, copy_body_r, id, NULL); return body; } @@ -636,7 +636,8 @@ expand_call_inline (tp, walk_subtrees, data) { if (i == 2) ++id->in_target_cleanup_p; - walk_tree (&TREE_OPERAND (*tp, i), expand_call_inline, data); + walk_tree (&TREE_OPERAND (*tp, i), expand_call_inline, data, + NULL); if (i == 2) --id->in_target_cleanup_p; } @@ -792,7 +793,7 @@ expand_calls_inline (tp, id) { /* Search through *TP, replacing all calls to inline functions by appropriate equivalents. */ - walk_tree (tp, expand_call_inline, id); + walk_tree (tp, expand_call_inline, id, NULL); } /* Optimize the body of FN. */ @@ -879,8 +880,9 @@ int calls_setjmp_p (fn) tree fn; { - return (walk_tree (&DECL_SAVED_TREE (fn), calls_setjmp_r, NULL) - != NULL_TREE); + return walk_tree_without_duplicates (&DECL_SAVED_TREE (fn), + calls_setjmp_r, + NULL) != NULL_TREE; } /* FN is a function that has a complete body. Clone the body as |