aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog16
-rw-r--r--gcc/c-format.c4
-rw-r--r--gcc/cfgrtl.c2
-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
-rw-r--r--gcc/java/ChangeLog7
-rw-r--r--gcc/java/class.c2
-rw-r--r--gcc/java/expr.c2
-rw-r--r--gcc/java/jcf-parse.c2
14 files changed, 49 insertions, 26 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index f271d04..60e018b 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2003-06-27 Zack Weinberg <zack@codesourcery.com>
+
+ * c-format.c (check_format_string, get_constant)
+ * cfgrtl.c (rtl_split_edge):
+ Mark the definition static, matching the forward declaration.
+
2003-06-27 Gunther Nikl <gni@gecko.de>
* unwind-c.c (PERSONALITY_FUNCTION): Delete duplicate define.
@@ -11,9 +17,9 @@
* config/s390/s390.h (SECONDARY_OUTPUT_RELOAD_CLASS): Define.
* config/s390/s390.c (s390_secondary_output_reload_class): New function.
- * config/s390/s390-protos.h (s390_secondary_output_reload_class):
+ * config/s390/s390-protos.h (s390_secondary_output_reload_class):
Declare it.
- * config/s390/s390.md ("reload_outti", "reload_outdi",
+ * config/s390/s390.md ("reload_outti", "reload_outdi",
"reload_outdf"): New expanders.
* config/s390/s390.md ("movti" + splitters): Handle non-offsettable
@@ -63,9 +69,9 @@
2003-06-27 Ulrich Weigand <uweigand@de.ibm.com>
- * ggc-page.c (inverse_table): Change type of mult to size_t.
- (compute_inverse): Compute inverse using size_t, not unsigned int.
- Compute inverse also for sizes larger than half a machine page.
+ * ggc-page.c (inverse_table): Change type of mult to size_t.
+ (compute_inverse): Compute inverse using size_t, not unsigned int.
+ Compute inverse also for sizes larger than half a machine page.
Fri Jun 27 18:36:12 CEST 2003 Jan Hubicka <jh@suse.cz>
diff --git a/gcc/c-format.c b/gcc/c-format.c
index 1a24019..5bae1c2 100644
--- a/gcc/c-format.c
+++ b/gcc/c-format.c
@@ -116,7 +116,7 @@ handle_format_arg_attribute (tree *node, tree name ATTRIBUTE_UNUSED,
/* Verify that the format_num argument is actually a string, in case
the format attribute is in error. */
-bool
+static bool
check_format_string (tree argument, unsigned HOST_WIDE_INT format_num,
int flags, bool *no_add_attrs)
{
@@ -146,7 +146,7 @@ check_format_string (tree argument, unsigned HOST_WIDE_INT format_num,
/* Strip any conversions from the expression, verify it is a constant,
and store its value. If validated_p is true, abort on errors.
Returns true on success, false otherwise. */
-bool
+static bool
get_constant(tree expr, unsigned HOST_WIDE_INT *value, int validated_p)
{
while (TREE_CODE (expr) == NOP_EXPR
diff --git a/gcc/cfgrtl.c b/gcc/cfgrtl.c
index a08d29f..af13138 100644
--- a/gcc/cfgrtl.c
+++ b/gcc/cfgrtl.c
@@ -1200,7 +1200,7 @@ back_edge_of_syntactic_loop_p (basic_block bb1, basic_block bb2)
The case of a block ending in an unconditional jump to a
block with multiple predecessors is not handled optimally. */
-basic_block
+static basic_block
rtl_split_edge (edge edge_in)
{
basic_block bb;
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. */
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog
index 591b230..655111c 100644
--- a/gcc/java/ChangeLog
+++ b/gcc/java/ChangeLog
@@ -1,3 +1,10 @@
+2003-06-27 Zack Weinberg <zack@codesourcery.com>
+
+ * class.c (build_method_symbols_entry)
+ * expr.c (get_offset_table_index)
+ * jcf-parse.c (jcf_parse):
+ Mark the definition static, matching the forward declaration.
+
2003-06-26 Neil Booth <neil@daikokuya.co.uk>
* lang.c (java_handle_option): Don't check for missing arguments.
diff --git a/gcc/java/class.c b/gcc/java/class.c
index ed1ae4d..443cfc5 100644
--- a/gcc/java/class.c
+++ b/gcc/java/class.c
@@ -2042,7 +2042,7 @@ emit_register_classes (void)
/* Make a method_symbol_type (_Jv_MethodSymbol) node for METHOD. */
-tree
+static tree
build_method_symbols_entry (tree method)
{
tree clname, name, signature, method_symbol;
diff --git a/gcc/java/expr.c b/gcc/java/expr.c
index 6cbfbc9..a697987 100644
--- a/gcc/java/expr.c
+++ b/gcc/java/expr.c
@@ -1821,7 +1821,7 @@ invoke_build_dtable (int is_invoke_interface, tree arg_list)
METHOD. If this method has not been seen before, it will be added to the
otable_methods. If it has, the existing otable slot will be reused. */
-int
+static int
get_offset_table_index (tree method)
{
int i = 1;
diff --git a/gcc/java/jcf-parse.c b/gcc/java/jcf-parse.c
index 2b20537..2393927 100644
--- a/gcc/java/jcf-parse.c
+++ b/gcc/java/jcf-parse.c
@@ -607,7 +607,7 @@ load_class (tree class_or_name, int verbose)
/* Parse the .class file JCF. */
-void
+static void
jcf_parse (JCF* jcf)
{
int i, code;