cp-tree.h (do_poplevel): Remove prototype.

* cp-tree.h (do_poplevel): Remove prototype.
	* semantics.c (do_poplevel): Add prototype.  Make static.

	* cp-tree.h (original_type): Remove prototype.
	* typeck.c (original_type): Make static.

	* cp-tree.h (declare_global_var): Remove prototype.
	* decl.c (declare_global_var): Make static.

	* cp-tree.h (implicitly_declare_fn): Remove prototype.
	* method.c (implicitly_declare_fn): Make static.

	* cp-tree.h (fold_decl_constant_value): Remove prototype.
	* pt.c (fold_decl_constant_value): Make static.

From-SVN: r110140
This commit is contained in:
Volker Reichelt 2006-01-23 18:26:01 +00:00 committed by Volker Reichelt
parent 0eab3aad58
commit 993acaec69
7 changed files with 21 additions and 11 deletions

View file

@ -1,5 +1,20 @@
2006-01-23 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
* cp-tree.h (do_poplevel): Remove prototype.
* semantics.c (do_poplevel): Add prototype. Make static.
* cp-tree.h (original_type): Remove prototype.
* typeck.c (original_type): Make static.
* cp-tree.h (declare_global_var): Remove prototype.
* decl.c (declare_global_var): Make static.
* cp-tree.h (implicitly_declare_fn): Remove prototype.
* method.c (implicitly_declare_fn): Make static.
* cp-tree.h (fold_decl_constant_value): Remove prototype.
* pt.c (fold_decl_constant_value): Make static.
* cp-tree.h (build_x_delete): Remove prototype.
* init.c (build_vec_delete_1): Call build_op_delete_call directly
and not via build_x_delete.

View file

@ -3848,7 +3848,6 @@ extern tree force_target_expr (tree, tree);
extern tree build_target_expr_with_type (tree, tree);
extern int local_variable_p (tree);
extern int nonstatic_local_decl_p (tree);
extern tree declare_global_var (tree, tree);
extern tree register_dtor_fn (tree);
extern tmpl_spec_kind current_tmpl_spec_kind (int);
extern tree cp_fname_init (const char *, tree *);
@ -3983,8 +3982,6 @@ extern tree make_thunk (tree, bool, tree, tree);
extern void finish_thunk (tree);
extern void use_thunk (tree, bool);
extern void synthesize_method (tree);
extern tree implicitly_declare_fn (special_function_kind,
tree, bool);
extern tree lazily_declare_fn (special_function_kind,
tree);
extern tree skip_artificial_parms_for (tree, tree);
@ -4063,7 +4060,6 @@ extern tree build_non_dependent_expr (tree);
extern tree build_non_dependent_args (tree);
extern bool reregister_specialization (tree, tree, tree);
extern tree fold_non_dependent_expr (tree);
extern tree fold_decl_constant_value (tree);
/* in repo.c */
extern void init_repo (void);
@ -4134,7 +4130,6 @@ extern void perform_deferred_access_checks (void);
extern void perform_or_defer_access_check (tree, tree);
extern int stmts_are_full_exprs_p (void);
extern void init_cp_semantics (void);
extern tree do_poplevel (tree);
extern void add_decl_expr (tree);
extern tree finish_expr_stmt (tree);
extern tree begin_if_stmt (void);
@ -4304,7 +4299,6 @@ extern tree require_complete_type (tree);
extern tree complete_type (tree);
extern tree complete_type_or_else (tree, tree);
extern int type_unknown_p (tree);
extern tree original_type (tree);
extern bool comp_except_specs (tree, tree, bool);
extern bool comptypes (tree, tree, int);
extern bool compparms (tree, tree);

View file

@ -5138,7 +5138,7 @@ finish_decl (tree decl, tree init, tree asmspec_tree)
had been seen. Used to create compiler-generated global
variables. */
tree
static tree
declare_global_var (tree name, tree type)
{
tree decl;

View file

@ -969,7 +969,7 @@ locate_copy (tree type, void *client_)
reference argument or a non-const reference. Returns the
FUNCTION_DECL for the implicitly declared function. */
tree
static tree
implicitly_declare_fn (special_function_kind kind, tree type, bool const_p)
{
tree fn;

View file

@ -3357,7 +3357,7 @@ fold_non_dependent_expr (tree expr)
initializers can maintain a syntactic rather than semantic form
(even if they are non-dependent, for access-checking purposes). */
tree
static tree
fold_decl_constant_value (tree expr)
{
tree const_expr = expr;

View file

@ -57,6 +57,7 @@
parsing into this file; that will make implementing the new parser
much easier since it will be able to make use of these routines. */
static tree do_poplevel (tree);
static tree maybe_convert_cond (tree);
static tree simplify_aggr_init_exprs_r (tree *, int *, void *);
static void emit_associated_thunks (tree);
@ -427,7 +428,7 @@ anon_aggr_type_p (tree node)
/* Finish a scope. */
tree
static tree
do_poplevel (tree stmt_list)
{
tree block = NULL;

View file

@ -224,7 +224,7 @@ commonparms (tree p1, tree p2)
/* Given a type, perhaps copied for a typedef,
find the "original" version of it. */
tree
static tree
original_type (tree t)
{
while (TYPE_NAME (t) != NULL_TREE)