aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cp')
-rw-r--r--gcc/cp/ChangeLog24
-rw-r--r--gcc/cp/decl.c2
-rw-r--r--gcc/cp/mangle.c2
-rw-r--r--gcc/cp/parser.c2
-rw-r--r--gcc/cp/pt.c6
-rw-r--r--gcc/cp/repo.c2
-rw-r--r--gcc/cp/semantics.c2
7 files changed, 25 insertions, 15 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 69242ca..3e878d8 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,13 @@
+2003-06-27 Zack Weinberg <zack@codesourcery.com>
+
+ * decl.c (build_typename_type)
+ * mangle.c (write_template_template_arg)
+ * parser.c (cp_parser_scope_through_which_access_occurs)
+ * pt.c (push_access_scope_real, push_access_scope, pop_access_scope)
+ * repo.c (get_base_filename)
+ * semantics.c (maybe_convert_cond):
+ Mark the definition static, matching the forward declaration.
+
2003-06-27 Mark Mitchell <mark@codesourcery.com>
PR c++/10468
@@ -24,10 +34,10 @@
2003-06-26 Giovanni Bajo <giovannibajo@libero.it>
- PR c++/8266
- * pt.c (check_explicit_specialization): When looking up a
- template function from an identifier outside class-scope, bind
- it to CP_DECL_CONTEXT.
+ PR c++/8266
+ * pt.c (check_explicit_specialization): When looking up a
+ template function from an identifier outside class-scope, bind
+ it to CP_DECL_CONTEXT.
2003-06-25 Mark Mitchell <mark@codesourcery.com>
@@ -43,7 +53,7 @@
* cp-tree.h (perform_direct_initialization_if_possible): Declare it.
* typeck.c (check_for_casting_away_constness): New function.
(build_static_cast): Rewrite.
-
+
2003-06-24 Nathan Sidwell <nathan@codesourcery.com>
* call.c (enforce_access): Assert we get a binfo.
@@ -178,7 +188,7 @@ Mon Jun 23 19:41:27 CEST 2003 Jan Hubicka <jh@suse.cz>
* decl2.c (get_guard): Use pushdecl_top_level_and_finish.
* rtti.c (get_tinfo_decl): Use pushdecl_top_level_and_finish.
(tinfo_base_init): Likewise.
-
+
2003-06-19 Matt Austern <austern@apple.com>
PR c++/11228
@@ -186,7 +196,7 @@ Mon Jun 23 19:41:27 CEST 2003 Jan Hubicka <jh@suse.cz>
is an integer constant.
(build_default_init) Don't use build_zero_init for arrays with
variable number of elements.
-
+
2003-06-19 Andreas Jaeger <aj@suse.de>
* cp-tree.h: Remove duplicated declarations.
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c
index 66257c0..67babc2 100644
--- a/gcc/cp/decl.c
+++ b/gcc/cp/decl.c
@@ -5415,7 +5415,7 @@ typename_compare (const void * k1, const void * k2)
static GTY ((param_is (union tree_node))) htab_t typename_htab;
-tree
+static tree
build_typename_type (tree context, tree name, tree fullname)
{
tree t;
diff --git a/gcc/cp/mangle.c b/gcc/cp/mangle.c
index b5d0a64..4885ee7 100644
--- a/gcc/cp/mangle.c
+++ b/gcc/cp/mangle.c
@@ -2138,7 +2138,7 @@ write_template_arg (tree node)
::= <name>
::= <substitution> */
-void
+static void
write_template_template_arg (const tree decl)
{
MANGLE_TRACE_TREE ("template-template-arg", decl);
diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c
index 6240c24..2116619 100644
--- a/gcc/cp/parser.c
+++ b/gcc/cp/parser.c
@@ -1786,7 +1786,7 @@ cp_parser_is_keyword (cp_token* token, enum rid keyword)
or `x', respectively. If the DECL was named as `A::B' then
NESTED_NAME_SPECIFIER is `A'. */
-tree
+static tree
cp_parser_scope_through_which_access_occurs (tree decl,
tree object_type,
tree nested_name_specifier)
diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c
index 75b3537..1b56f53 100644
--- a/gcc/cp/pt.c
+++ b/gcc/cp/pt.c
@@ -180,7 +180,7 @@ static tree tsubst_copy_and_build (tree, tree, tsubst_flags_t, tree);
template argument for TEMPLATE_DECL. If CONTEXT is not NULL_TREE,
this is used instead of the context of T. */
-void
+static void
push_access_scope_real (tree t, tree args, tree context)
{
if (TREE_CODE (t) == FUNCTION_DECL || DECL_FUNCTION_TEMPLATE_P (t))
@@ -227,7 +227,7 @@ push_access_scope_real (tree t, tree args, tree context)
/* Like push_access_scope_real, but always uses DECL_CONTEXT. */
-void
+static void
push_access_scope (tree t)
{
push_access_scope_real (t, NULL_TREE, NULL_TREE);
@@ -236,7 +236,7 @@ push_access_scope (tree t)
/* Restore the scope set up by push_access_scope. T is the node we
are processing. */
-void
+static void
pop_access_scope (tree t)
{
if (TREE_CODE (t) == FUNCTION_DECL || DECL_FUNCTION_TEMPLATE_P (t))
diff --git a/gcc/cp/repo.c b/gcc/cp/repo.c
index 603b04e..7b7b48c 100644
--- a/gcc/cp/repo.c
+++ b/gcc/cp/repo.c
@@ -234,7 +234,7 @@ extract_string (char **pp)
return obstack_finish (&temporary_obstack);
}
-const char *
+static const char *
get_base_filename (const char *filename)
{
char *p = getenv ("COLLECT_GCC_OPTIONS");
diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c
index 3272284..aaf8be4 100644
--- a/gcc/cp/semantics.c
+++ b/gcc/cp/semantics.c
@@ -393,7 +393,7 @@ finish_goto_stmt (tree destination)
/* COND is the condition-expression for an if, while, etc.,
statement. Convert it to a boolean value, if appropriate. */
-tree
+static tree
maybe_convert_cond (tree cond)
{
/* Empty conditions remain empty. */