aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/decl.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/decl.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/decl.c')
-rw-r--r--gcc/cp/decl.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c
index 296d143..9ebfd27 100644
--- a/gcc/cp/decl.c
+++ b/gcc/cp/decl.c
@@ -5880,15 +5880,6 @@ cp_finish_decl (tree decl, tree init, bool init_const_expr_p,
mark_decl_referenced (decl);
}
-/* This is here for a midend callback from c-common.c. */
-
-void
-finish_decl (tree decl, tree init, tree origtype ATTRIBUTE_UNUSED,
- tree asmspec_tree)
-{
- cp_finish_decl (decl, init, /*init_const_expr_p=*/false, asmspec_tree, 0);
-}
-
/* Returns a declaration for a VAR_DECL as if:
extern "C" TYPE NAME;
@@ -5911,7 +5902,7 @@ declare_global_var (tree name, tree type)
library), then it is possible that our declaration will be merged
with theirs by pushdecl. */
decl = pushdecl (decl);
- finish_decl (decl, NULL_TREE, NULL_TREE, NULL_TREE);
+ cp_finish_decl (decl, NULL_TREE, false, NULL_TREE, 0);
pop_from_top_level ();
return decl;
@@ -12523,7 +12514,7 @@ start_method (cp_decl_specifier_seq *declspecs,
}
}
- finish_decl (fndecl, NULL_TREE, NULL_TREE, NULL_TREE);
+ cp_finish_decl (fndecl, NULL_TREE, false, NULL_TREE, 0);
/* Make a place for the parms. */
begin_scope (sk_function_parms, fndecl);