aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/tree.c
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2000-04-11 16:27:42 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2000-04-11 16:27:42 +0000
commit0acf7199cc1cdd108ad61ddb1b5999f2d510369e (patch)
treed0f6a675e8ef0524ebfc20c64fe54718dbd9391f /gcc/cp/tree.c
parent2133335f6a8b4eeff6523a3d5ab1ac083cef24c6 (diff)
downloadgcc-0acf7199cc1cdd108ad61ddb1b5999f2d510369e.zip
gcc-0acf7199cc1cdd108ad61ddb1b5999f2d510369e.tar.gz
gcc-0acf7199cc1cdd108ad61ddb1b5999f2d510369e.tar.bz2
cp-tre.h (finish_function): Change prototype.
* cp-tre.h (finish_function): Change prototype. * decl.c (end_cleanup_fn): Adjust caller. (finish_function): Take only one parameter. * decl2.c (finish_objects): Adjust caller. (finish_static_storage_duration_function): Likewise. * method.c (emit_thunk): Likewise. * parse.y: Likewise. * parse.c: Regenerated. * pt.c (instantiate_decl): Likewise. * rtti.c (synthesize_tinfo_fn): Likewise. * semantics.c (expand_body): Likewise. * cp-tree.h (copy_decl): New function. * class.c (finish_struct_1): Use it. * lex.c (copy_decl): Define it. * pt.c (tsubst_decl): Likewise. * tree.c (copy_template_template_parm): Likewise. From-SVN: r33079
Diffstat (limited to 'gcc/cp/tree.c')
-rw-r--r--gcc/cp/tree.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/cp/tree.c b/gcc/cp/tree.c
index d5e0a5d6..db3c418 100644
--- a/gcc/cp/tree.c
+++ b/gcc/cp/tree.c
@@ -1181,8 +1181,7 @@ copy_template_template_parm (t)
tree t2;
t2 = make_aggr_type (TEMPLATE_TEMPLATE_PARM);
- template = copy_node (template);
- copy_lang_decl (template);
+ template = copy_decl (template);
TREE_TYPE (template) = t2;
TYPE_NAME (t2) = template;