diff options
author | Mark Mitchell <mark@codesourcery.com> | 2000-09-05 07:31:27 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2000-09-05 07:31:27 +0000 |
commit | ee94fce6ef0432857717b93bdb1aae415ae6e4d6 (patch) | |
tree | 725343e2ca5ef39491e3d69fbb346fbb1fac15b5 /gcc/cp/pt.c | |
parent | c0712acbc7117096c29ef8febd01a882779c31e0 (diff) | |
download | gcc-ee94fce6ef0432857717b93bdb1aae415ae6e4d6.zip gcc-ee94fce6ef0432857717b93bdb1aae415ae6e4d6.tar.gz gcc-ee94fce6ef0432857717b93bdb1aae415ae6e4d6.tar.bz2 |
Makefile.in (CXX_TREE_H): Add dependency on HTAB_H.
* 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.
From-SVN: r36155
Diffstat (limited to 'gcc/cp/pt.c')
-rw-r--r-- | gcc/cp/pt.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index cddf0f9..b50f79f 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -43,7 +43,6 @@ Boston, MA 02111-1307, USA. */ #include "rtl.h" #include "defaults.h" #include "ggc.h" -#include "hashtab.h" #include "timevar.h" /* The type of functions taking a tree, and some additional data, and @@ -4276,7 +4275,9 @@ for_each_template_parm (t, fn, data) pfd.data = data; /* Walk the tree. */ - return walk_tree (&t, for_each_template_parm_r, &pfd) != NULL_TREE; + return walk_tree_without_duplicates (&t, + for_each_template_parm_r, + &pfd) != NULL_TREE; } int |