aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/pt.c
diff options
context:
space:
mode:
authorAldy Hernandez <aldyh@redhat.com>2009-06-18 18:09:12 +0000
committerAldy Hernandez <aldyh@gcc.gnu.org>2009-06-18 18:09:12 +0000
commit3600f67820b56b1083b1b5719e2be55b5bc8b775 (patch)
treea1cb9f9b9d4df1dc44becd4451c5ade82a30cb5d /gcc/cp/pt.c
parentb6680d727147ab31aa2248f2ba355b501d26cae2 (diff)
downloadgcc-3600f67820b56b1083b1b5719e2be55b5bc8b775.zip
gcc-3600f67820b56b1083b1b5719e2be55b5bc8b775.tar.gz
gcc-3600f67820b56b1083b1b5719e2be55b5bc8b775.tar.bz2
class.c (get_vtable_decl): Replace finish_decl with cp_finish_decl.
* class.c (get_vtable_decl): Replace finish_decl with cp_finish_decl. * decl.c (finish_decl): Remove. (declare_global_var): Replace finish_decl with cp_finish_decl. (start_method): Same. * rtti.c (emit_tinfo_decl): Same. * pt.c (tsubst_expr): Same. (instantiate_decl): Same. * decl2.c (grokbitfield): Same. * name-lookup.c (pushdecl_top_level_1): Same. * cp-tree.h: Remove finish_decl. From-SVN: r148666
Diffstat (limited to 'gcc/cp/pt.c')
-rw-r--r--gcc/cp/pt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c
index 5645b23..977a101 100644
--- a/gcc/cp/pt.c
+++ b/gcc/cp/pt.c
@@ -10819,7 +10819,7 @@ tsubst_expr (tree t, tree args, tsubst_flags_t complain, tree in_decl,
init = t;
}
- finish_decl (decl, init, NULL_TREE, NULL_TREE);
+ cp_finish_decl (decl, init, false, NULL_TREE, 0);
}
}
}
@@ -15727,7 +15727,7 @@ instantiate_decl (tree d, int defer_ok,
/* The initializer is placed in DECL_INITIAL by
regenerate_decl_from_template. Pull it out so that
- finish_decl can process it. */
+ cp_finish_decl can process it. */
init = DECL_INITIAL (d);
DECL_INITIAL (d) = NULL_TREE;
DECL_INITIALIZED_P (d) = 0;
@@ -15739,7 +15739,7 @@ instantiate_decl (tree d, int defer_ok,
/* Enter the scope of D so that access-checking works correctly. */
push_nested_class (DECL_CONTEXT (d));
- finish_decl (d, init, NULL_TREE, NULL_TREE);
+ cp_finish_decl (d, init, false, NULL_TREE, 0);
pop_nested_class ();
}
else if (TREE_CODE (d) == FUNCTION_DECL)