]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* c-format.c (check_format_string, get_constant)
authorZack Weinberg <zack@gcc.gnu.org>
Sat, 28 Jun 2003 00:30:31 +0000 (00:30 +0000)
committerZack Weinberg <zack@gcc.gnu.org>
Sat, 28 Jun 2003 00:30:31 +0000 (00:30 +0000)
* cfgrtl.c (rtl_split_edge):
Mark the definition static, matching the forward declaration.
cp:
* 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.
java:
* 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.

From-SVN: r68622

14 files changed:
gcc/ChangeLog
gcc/c-format.c
gcc/cfgrtl.c
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/mangle.c
gcc/cp/parser.c
gcc/cp/pt.c
gcc/cp/repo.c
gcc/cp/semantics.c
gcc/java/ChangeLog
gcc/java/class.c
gcc/java/expr.c
gcc/java/jcf-parse.c

index f271d0445dd78b70e6cde55ea53b782860bb5f57..60e018b22345a091ac7a7f7016973d85645eaa09 100644 (file)
@@ -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>
 
index 1a2401955cba5c66922559238446c529c3bfd58c..5bae1c21b4a0b0ee2c845e050311234bef6dd61e 100644 (file)
@@ -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
index a08d29f3da94da025d181a60f039e04c8c9dfa63..af13138f0b428741d6d8beb35bbe0aa5efcfcd97 100644 (file)
@@ -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;
index 69242ca97ee007ecfc98ed1fd4d8fda6ffd5e2de..3e878d8a1f93fedeae808709c3f4c643fe7eedbe 100644 (file)
@@ -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
 
 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.
index 66257c0d6c4ab9c1be31f049684132fa2313deb0..67babc26284938c80cf2ab004daa9a9d4edf6af2 100644 (file)
@@ -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;
index b5d0a645af492f749451c1c47db2ff02f055e001..4885ee78d5e51c4d15e69b1040203ad67a7959de 100644 (file)
@@ -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);
index 6240c244607a5c1805b796046e95acf2c677f7eb..21166190b8baa2a13b774c20ba56284baaa2fd39 100644 (file)
@@ -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)
index 75b3537e53a9b14968c20a9787a92d991d8250bb..1b56f53df8c3acfcfcaec12f5c0fa6ab519e695c 100644 (file)
@@ -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))
index 603b04eef06d45a005c1f2c945c0a72dbf5045af..7b7b48cecd57c3c2b729286698f27f7965877429 100644 (file)
@@ -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");
index 3272284d9c7a5f098f1da05d3e1f035ac46822e5..aaf8be405a4fda7205c48d9ae8d22a35f2f5b877 100644 (file)
@@ -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.  */
index 591b230a136fda76e2cfea8acbd0e150ae1e06c7..655111c18da707a1f52c9ccf57e3af0c8d6f9bbd 100644 (file)
@@ -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.
index ed1ae4d7116dfbb235e70d7d32940b54e3b121c7..443cfc557d8e472ab7e651a3988d5b8075617c1a 100644 (file)
@@ -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;
index 6cbfbc9f19f8f541deb64dd462d0f9ec85e364cb..a69798720546f0f5a3490e065ec8f027af4bde8e 100644 (file)
@@ -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;
index 2b20537a1376350af387d1b05dd96f230fafa612..23939271061b9d2ac88ae3cd35d7da4a4dbd4de2 100644 (file)
@@ -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;