]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
cp-tree.h (do_poplevel): Remove prototype.
authorVolker Reichelt <reichelt@igpm.rwth-aachen.de>
Mon, 23 Jan 2006 18:26:01 +0000 (18:26 +0000)
committerVolker Reichelt <reichelt@gcc.gnu.org>
Mon, 23 Jan 2006 18:26:01 +0000 (18:26 +0000)
* 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

gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/method.c
gcc/cp/pt.c
gcc/cp/semantics.c
gcc/cp/typeck.c

index 018a25dbc9ec211f759252a14cefbe976d7350b2..ee481d7c1c9867df785281a5d1f79f7b81b6358c 100644 (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.
index 0c777d790c4432770f18a0bbd2676db0c4873bfe..68c6ddb65e794c70a0ac3f45b62ee20f7179eaed 100644 (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);
index 3c98d4918f23cdfca8b9f6ea1bce0ef91ba03501..e4be9e0f88c71a7681efbfc1bca3924d54d80a27 100644 (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;
index 250c66d08b35a49a47c393beb4b09fe54d6017b2..4a1a4ed2dac3f64cd7b6f14ffc60ce4e657533fe 100644 (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;
index 236145763addfda4a7dc51de3e4ec51a7d8fdc0b..40ebbe5cca7e98c6f5d164ec37074e4e5d418e17 100644 (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;
index 6121d43b99f6fbdb15156ff093fe1d6248154979..47ff6ea0fedcfec1898b431a15365d6a3060820d 100644 (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;
index 01f2ebbd9b58068475f89e1043307b3edc747bad..49deccc0ad3e1cd1e98b62be7a91906750e774e4 100644 (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)