cpplib.c (if_directive_nameo): Add static prototype.
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Sun, 3 Oct 1999 16:28:33 +0000 (16:28 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Sun, 3 Oct 1999 16:28:33 +0000 (16:28 +0000)
* cpplib.c (if_directive_nameo): Add static prototype.

* cse.c (cse_insn): Remove unused variable `p'.

* except.c (create_rethrow_ref, push_entry,
receive_exception_label, new_eh_region_entry, find_func_region,
clear_function_eh_region, process_nestinfo): Add static prototypes.
(get_reg_for_handler): Hide definition.
(process_nestinfo): Initialize variable `extra_handlers'.

* expr.h (expand_builtin_longjmp): Add extern prototype.

* final.c (final_addr_vec_align, align_fuzz): Add static prototypes.

* function.c (prepare_function_start): Likewise.
(pop_function_context_from): Mark parameter `context' with
ATTRIBUTE_UNUSED.
(push_temp_slots_for_block, flush_addressof): Hide definition.

* gcov.c (init_arc, reverse_arcs, create_program_flow_graph,
solve_program_flow_graph, calculate_branch_probs,
function_summary, main, fancy_abort): Add prototypes.

* gen-protos.c (add_hash, parse_fn_proto, main): Likewise.
(add_hash): Constify a char*.

* ggc-common.c (ggc_mark_rtx_ptr, ggc_mark_tree_ptr,
ggc_mark_tree_varray_ptr, ggc_mark_tree_hash_table_ptr,
ggc_mark_string_ptr, ggc_mark_tree_hash_table_entry): Add prototypes.

* integrate.c (expand_inline_function_eh_labelmap): Likewise.

* lists.c (free_list, zap_lists): Likewise.

From-SVN: r29783

12 files changed:
gcc/ChangeLog
gcc/cpplib.c
gcc/cse.c
gcc/except.c
gcc/expr.h
gcc/final.c
gcc/function.c
gcc/gcov.c
gcc/gen-protos.c
gcc/ggc-common.c
gcc/integrate.c
gcc/lists.c

index 803a8c1853c9705df6c471e7ffcbb49a53106893..7b90910f77d86050e7f75e3a9032ccaf43ba3d7f 100644 (file)
@@ -1,3 +1,39 @@
+Sun Oct  3 12:24:52 1999  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * cpplib.c (if_directive_nameo): Add static prototype.
+
+       * cse.c (cse_insn): Remove unused variable `p'.
+
+       * except.c (create_rethrow_ref, push_entry,
+       receive_exception_label, new_eh_region_entry, find_func_region,
+       clear_function_eh_region, process_nestinfo): Add static prototypes.
+       (get_reg_for_handler): Hide definition.
+       (process_nestinfo): Initialize variable `extra_handlers'.
+
+       * expr.h (expand_builtin_longjmp): Add extern prototype.
+
+       * final.c (final_addr_vec_align, align_fuzz): Add static prototypes.
+
+       * function.c (prepare_function_start): Likewise.
+       (pop_function_context_from): Mark parameter `context' with
+       ATTRIBUTE_UNUSED.
+       (push_temp_slots_for_block, flush_addressof): Hide definition.
+       
+       * gcov.c (init_arc, reverse_arcs, create_program_flow_graph,
+       solve_program_flow_graph, calculate_branch_probs,
+       function_summary, main, fancy_abort): Add prototypes.
+
+       * gen-protos.c (add_hash, parse_fn_proto, main): Likewise.
+       (add_hash): Constify a char*.
+
+       * ggc-common.c (ggc_mark_rtx_ptr, ggc_mark_tree_ptr,
+       ggc_mark_tree_varray_ptr, ggc_mark_tree_hash_table_ptr,
+       ggc_mark_string_ptr, ggc_mark_tree_hash_table_entry): Add prototypes.
+
+       * integrate.c (expand_inline_function_eh_labelmap): Likewise.
+
+       * lists.c (free_list, zap_lists): Likewise.
+
 Sun Oct  3 12:05:28 1999  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
 
        * alias.c (nonlocal_reference_p): Add static prototype.
index 80f02de69b1b37fd4e228abf5cba60722de26554..7e41d1b4228a6de2ddc736ebad65a13553a2737b 100644 (file)
@@ -49,6 +49,8 @@ static void skip_if_group             PROTO ((cpp_reader *));
 static void parse_name                 PARAMS ((cpp_reader *, int));
 static void parse_string               PARAMS ((cpp_reader *, int));
 static int parse_assertion             PARAMS ((cpp_reader *));
+static const char *if_directive_name   PARAMS ((cpp_reader *,
+                                                struct if_stack *));
 
 /* External declarations.  */
 
index 9422cb9376498ea96310969cf6bfea7497b07f0e..42b338c5cec70600eb8c1b46c8232ef914c942de 100644 (file)
--- a/gcc/cse.c
+++ b/gcc/cse.c
@@ -7404,8 +7404,6 @@ cse_insn (insn, libcall_insn)
         it.  If it was a computed branch, delete it and re-emit.  */
       else if (dest == pc_rtx && GET_CODE (src) == LABEL_REF)
        {
-         rtx p;
-
          /* If this is not in the format for a simple branch and
             we are the only SET in it, re-emit it.  */
          if (! simplejump_p (insn) && n_sets == 1)
index 3ecf7fc712167bee46a11fd21c9d9296b1dea494..c7257b31ef4557a32adb3118d45faae61cca98fb 100644 (file)
@@ -472,7 +472,14 @@ static void mark_eh_node        PROTO((struct eh_node *));
 static void mark_eh_stack       PROTO((struct eh_stack *));
 static void mark_eh_queue       PROTO((struct eh_queue *));
 static void mark_tree_label_node PROTO ((struct label_node *));
-static void mark_func_eh_entry PROTO ((void *));
+static void mark_func_eh_entry PROTO ((void *));
+static rtx create_rethrow_ref  PROTO ((int));
+static void push_entry         PROTO ((struct eh_stack *, struct eh_entry*));
+static void receive_exception_label PROTO ((rtx));
+static int new_eh_region_entry PROTO ((int, rtx));
+static int find_func_region    PROTO ((int));
+static void clear_function_eh_region PROTO ((void));
+static void process_nestinfo   PROTO ((int, eh_nesting_info *, int *));
 
 rtx expand_builtin_return_addr PROTO((enum built_in_function, int, rtx));
 \f
@@ -877,7 +884,7 @@ get_new_handler (handler, typeinfo)
 /* Find the index in function_eh_regions associated with a NOTE region. If
    the region cannot be found, a -1 is returned. This should never happen! */
 
-int 
+static int 
 find_func_region (insn_region)
      int insn_region;
 {
@@ -2842,6 +2849,7 @@ eh_regs (pcontext, psp, pra, outgoing)
 /* Retrieve the register which contains the pointer to the eh_context
    structure set the __throw. */
 
+#if 0
 rtx 
 get_reg_for_handler ()
 {
@@ -2850,6 +2858,7 @@ get_reg_for_handler ()
                           current_function_decl);
   return reg1;
 }
+#endif
 
 /* Set up the epilogue with the magic bits we'll need to return to the
    exception handler.  */
@@ -3064,7 +3073,7 @@ process_nestinfo (block, info, nested_eh_region)
   handler_info *ptr, *last_ptr = NULL;
   int x, y, count = 0;
   int extra = 0;
-  handler_info **extra_handlers;
+  handler_info **extra_handlers = 0;
   int index = info->region_index[block];
 
   /* If we've already processed this block, simply return. */
index 13421d5b21bee6e8141d1d4e32621e1c7eee2a82..667ba0284d0828199e52d6759146308e36152e9a 100644 (file)
@@ -891,6 +891,7 @@ extern rtx expand_builtin_va_arg PROTO((tree, tree));
 #endif
 
 extern rtx expand_builtin_setjmp PROTO((rtx, rtx, rtx, rtx));
+extern void expand_builtin_longjmp PROTO ((rtx, rtx));
 extern rtx expand_builtin_saveregs PROTO((void));
 extern int get_varargs_alias_set PROTO((void));
 \f
index 5ef12ef36108e666b85d57ecfcb167eb2e4aba21..7402e270e933198fa36d10589e77968aa8980af5 100644 (file)
@@ -310,6 +310,10 @@ static void leaf_renumber_regs     PROTO((rtx));
 #ifdef HAVE_cc0
 static int alter_cond          PROTO((rtx));
 #endif
+#ifndef ADDR_VEC_ALIGN
+static int final_addr_vec_align PROTO ((rtx));
+#endif
+static int align_fuzz          PROTO ((rtx, rtx, int, unsigned));
 \f
 /* Initialize data in final at the beginning of a compilation.  */
 
@@ -824,7 +828,7 @@ get_attr_length (insn)
 #endif
 
 #ifndef ADDR_VEC_ALIGN
-int
+static int
 final_addr_vec_align (addr_vec)
      rtx addr_vec;
 {
@@ -889,7 +893,7 @@ label_to_alignment (label)
    GROWTH should be ~0 if the objective is to compute potential code size
    increase, and 0 if the objective is to compute potential shrink.
    The return value is undefined for any other value of GROWTH.  */
-int
+static int
 align_fuzz (start, end, known_align_log, growth)
      rtx start, end;
      int known_align_log;
index eec10118276648876f0935f543868489afd0501a..c84b6d647c54035dc0103ab27fe8d034dd3928f4 100644 (file)
@@ -280,6 +280,7 @@ static void compute_insns_for_mem PROTO ((rtx, rtx, struct hash_table *));
 static void mark_temp_slot PROTO ((struct temp_slot *));
 static void mark_function_status PROTO ((struct function *));
 static void mark_function_chain PROTO ((void *));
+static void prepare_function_start PROTO ((void));
 
 \f
 /* Pointer to chain of `struct function' for containing functions.  */
@@ -349,7 +350,7 @@ push_function_context ()
 
 void
 pop_function_context_from (context)
-     tree context;
+     tree context ATTRIBUTE_UNUSED;
 {
   struct function *p = outer_function_chain;
   struct var_refs_queue *queue;
@@ -1148,6 +1149,7 @@ push_temp_slots ()
 /* Likewise, but save the new level as the place to allocate variables
    for blocks.  */
 
+#if 0
 void
 push_temp_slots_for_block ()
 {
@@ -1182,6 +1184,7 @@ set_target_temp_slot_level (level)
 {
   target_temp_slot_level = level;
 }
+#endif
 
 /* Pop a temporary nesting level.  All slots in use in the current level
    are freed.  */
@@ -2680,6 +2683,7 @@ gen_mem_addressof (reg, decl)
 
 /* If DECL has an RTL that is an ADDRESSOF rtx, put it into the stack.  */
 
+#if 0
 void
 flush_addressof (decl)
      tree decl;
@@ -2691,6 +2695,7 @@ flush_addressof (decl)
       && GET_CODE (XEXP (XEXP (DECL_RTL (decl), 0), 0)) == REG)
     put_addressof_into_stack (XEXP (DECL_RTL (decl), 0), 0);
 }
+#endif
 
 /* Force the register pointed to by R, an ADDRESSOF rtx, into the stack.  */
 
index 7aff80920000b4a00d6c7247f8088d8287076854..ea1e7c34098d6431970dc9ea391e6be0264cadbd 100644 (file)
@@ -220,6 +220,15 @@ static void read_files PROTO ((void));
 static void scan_for_source_files PROTO ((void));
 static void output_data PROTO ((void));
 static void print_usage PROTO ((void)) ATTRIBUTE_NORETURN;
+static void init_arc PROTO ((struct adj_list *, int, int, struct bb_info *));
+static struct adj_list *reverse_arcs PROTO ((struct adj_list *));
+static void create_program_flow_graph PROTO ((struct bb_info_list *));
+static void solve_program_flow_graph PROTO ((struct bb_info_list *));
+static void calculate_branch_probs PROTO ((struct bb_info_list *, int,
+                                          struct arcdata **, int));
+static void function_summary PROTO ((void));
+
+extern int main PROTO ((int, char **));
 
 int
 main (argc, argv)
@@ -269,6 +278,7 @@ fnotice VPROTO ((FILE *file, const char *msgid, ...))
 
 /* More 'friendly' abort that prints the line and file.
    config.h can #define abort fancy_abort if you like that sort of thing.  */
+extern void fancy_abort PROTO ((void)) ATTRIBUTE_NORETURN;
 
 void
 fancy_abort ()
index 5c1f51c4cbe79f9c5b9979814d6dc92efb324a5a..497196269ab45ead9187d73aae11d9ed545aac7c 100644 (file)
@@ -25,13 +25,16 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 int verbose = 0;
 const char *progname;
 
+static void add_hash           PARAMS ((const char *));
+static int parse_fn_proto      PARAMS ((char *, char *, struct fn_decl *));
+
 #define HASH_SIZE 2503 /* a prime */
 int hash_tab[HASH_SIZE];
 int next_index;
 
 static void
 add_hash (fname)
-     char *fname;
+     const char *fname;
 {
   int i, i0;
 
@@ -124,6 +127,8 @@ parse_fn_proto (start, end, fn)
   return 1;
 }
 
+extern int main PARAMS ((int, char **));
+
 int
 main (argc, argv)
      int argc ATTRIBUTE_UNUSED;
index 319623b0c7761b0df7b8d2683d0153de9f92e711..cf28d5bbc0c51b0b430f80e9cd8c3188b5e06473 100644 (file)
 #include "tree.h"
 #include "varray.h"
 
+static void ggc_mark_rtx_ptr PARAMS ((void *));
+static void ggc_mark_tree_ptr PARAMS ((void *));
+static void ggc_mark_tree_varray_ptr PARAMS ((void *));
+static void ggc_mark_tree_hash_table_ptr PARAMS ((void *));
+static void ggc_mark_string_ptr PARAMS ((void *));
+static boolean ggc_mark_tree_hash_table_entry PARAMS ((struct hash_entry *,
+                                                      hash_table_key));
 
 /* Maintain global roots that are preserved during GC.  */
 
index 0725a94cbca35ff8f584026c9d4e10fc3afbce26..bd2e6624a80e87a050505793167435699efd714e 100644 (file)
@@ -78,6 +78,7 @@ static void process_reg_param         PROTO((struct inline_remap *, rtx,
                                               rtx));
 void set_decl_abstract_flags           PROTO((tree, int));
 static tree copy_and_set_decl_abstract_origin PROTO((tree));
+static rtx expand_inline_function_eh_labelmap PROTO((rtx));
 
 /* The maximum number of instructions accepted for inlining a
    function.  Increasing values mean more agressive inlining.
@@ -1240,7 +1241,6 @@ expand_inline_function (fndecl, parms, target, ignore, type,
 
        default:
          abort ();
-         break;
        }
 
       if (copy)
index e0cb419e68e79b4118ab63fdd4bfb187a5aa65fc..90b67966b1542539a236b03b8ffc8487573cc899 100644 (file)
@@ -24,6 +24,9 @@ Boston, MA 02111-1307, USA.  */
 #include "rtl.h"
 #include "ggc.h"
 
+static void free_list PARAMS ((rtx *, rtx *));
+static void zap_lists PARAMS ((void *));
+
 /* Functions for maintaining cache-able lists of EXPR_LIST and INSN_LISTs.  */
 
 /* An INSN_LIST containing all INSN_LISTs allocated but currently unused.  */