aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Reichelt <reichelt@igpm.rwth-aachen.de>2005-01-25 08:55:00 +0000
committerVolker Reichelt <reichelt@gcc.gnu.org>2005-01-25 08:55:00 +0000
commitb8c1703b79d755920c37c1d999cf7f5a53a57763 (patch)
treeadf572fc317077e40bcf3040981f98ac7e21a24a
parent2d7c7fbe5937ea94a9d8d8cc7bbc7661a6369adc (diff)
downloadgcc-b8c1703b79d755920c37c1d999cf7f5a53a57763.zip
gcc-b8c1703b79d755920c37c1d999cf7f5a53a57763.tar.gz
gcc-b8c1703b79d755920c37c1d999cf7f5a53a57763.tar.bz2
name-lookup.c (print_binding_level): Make static.
* name-lookup.c (print_binding_level): Make static. (constructor_name_full): Make static inline. (current_decl_namespace): Make static. * name-lookup.h (constructor_name_full): Remove prototype. (print_binding_level): Likewise. (storetags): Likewise. (current_decl_namespace): Likewise. From-SVN: r94209
-rw-r--r--gcc/cp/ChangeLog10
-rw-r--r--gcc/cp/name-lookup.c6
-rw-r--r--gcc/cp/name-lookup.h3
3 files changed, 13 insertions, 6 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index c823978..db37ecd 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,5 +1,15 @@
2005-01-25 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
+ * name-lookup.c (print_binding_level): Make static.
+ (constructor_name_full): Make static inline.
+ (current_decl_namespace): Make static.
+ * name-lookup.h (constructor_name_full): Remove prototype.
+ (print_binding_level): Likewise.
+ (storetags): Likewise.
+ (current_decl_namespace): Likewise.
+
+2005-01-25 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
+
* decl.h (debug_bindings_indentation): Remove.
2005-01-23 Kazu Hirata <kazu@cs.umass.edu>
diff --git a/gcc/cp/name-lookup.c b/gcc/cp/name-lookup.c
index ac5ad91..3690e87 100644
--- a/gcc/cp/name-lookup.c
+++ b/gcc/cp/name-lookup.c
@@ -1478,7 +1478,7 @@ getdecls (void)
static int no_print_functions = 0;
static int no_print_builtins = 0;
-void
+static void
print_binding_level (struct cp_binding_level* lvl)
{
tree t;
@@ -1656,7 +1656,7 @@ set_identifier_type_value (tree id, tree decl)
specified class TYPE. When given a template, this routine doesn't
lose the specialization. */
-tree
+static inline tree
constructor_name_full (tree type)
{
return TYPE_IDENTIFIER (TYPE_MAIN_VARIANT (type));
@@ -2821,7 +2821,7 @@ set_decl_namespace (tree decl, tree scope, bool friendp)
/* Return the namespace where the current declaration is declared. */
-tree
+static tree
current_decl_namespace (void)
{
tree result;
diff --git a/gcc/cp/name-lookup.h b/gcc/cp/name-lookup.h
index 2e14494..e443319 100644
--- a/gcc/cp/name-lookup.h
+++ b/gcc/cp/name-lookup.h
@@ -94,7 +94,6 @@ DEF_VEC_GC_O(cxx_saved_binding);
extern tree identifier_type_value (tree);
extern void set_identifier_type_value (tree, tree);
extern void pop_binding (tree, tree);
-extern tree constructor_name_full (tree);
extern tree constructor_name (tree);
extern bool constructor_name_p (tree, tree);
@@ -293,7 +292,6 @@ extern bool template_parm_scope_p (void);
extern scope_kind innermost_scope_kind (void);
extern cxx_scope *begin_scope (scope_kind, tree);
extern void print_binding_stack (void);
-extern void print_binding_level (cxx_scope *);
extern void push_to_top_level (void);
extern void pop_from_top_level (void);
extern void pop_everything (void);
@@ -328,7 +326,6 @@ extern bool push_class_level_binding (tree, tree);
extern tree getdecls (void);
extern tree cp_namespace_decls (tree);
extern void set_decl_namespace (tree, tree, bool);
-extern tree current_decl_namespace (void);
extern void push_decl_namespace (tree);
extern void pop_decl_namespace (void);
extern void do_namespace_alias (tree, tree);