OSDN Git Service

gcc:
[pf3gnuchains/gcc-fork.git] / gcc / gcse.c
index e554dd8..9d83f05 100644 (file)
@@ -548,174 +548,166 @@ struct null_pointer_info
   sbitmap *nonnull_killed;
 };
 \f
-static void compute_can_copy   PARAMS ((void));
-static char *gmalloc           PARAMS ((unsigned int));
-static char *grealloc          PARAMS ((char *, unsigned int));
-static char *gcse_alloc                PARAMS ((unsigned long));
-static void alloc_gcse_mem     PARAMS ((rtx));
-static void free_gcse_mem      PARAMS ((void));
-static void alloc_reg_set_mem  PARAMS ((int));
-static void free_reg_set_mem   PARAMS ((void));
-static int get_bitmap_width     PARAMS ((int, int, int));
-static void record_one_set     PARAMS ((int, rtx));
-static void record_set_info    PARAMS ((rtx, rtx, void *));
-static void compute_sets       PARAMS ((rtx));
-static void hash_scan_insn     PARAMS ((rtx, struct hash_table *, int));
-static void hash_scan_set      PARAMS ((rtx, rtx, struct hash_table *));
-static void hash_scan_clobber  PARAMS ((rtx, rtx, struct hash_table *));
-static void hash_scan_call     PARAMS ((rtx, rtx, struct hash_table *));
-static int want_to_gcse_p      PARAMS ((rtx));
-static bool gcse_constant_p    PARAMS ((rtx));
-static int oprs_unchanged_p    PARAMS ((rtx, rtx, int));
-static int oprs_anticipatable_p PARAMS ((rtx, rtx));
-static int oprs_available_p    PARAMS ((rtx, rtx));
-static void insert_expr_in_table PARAMS ((rtx, enum machine_mode, rtx,
-                                         int, int, struct hash_table *));
-static void insert_set_in_table PARAMS ((rtx, rtx, struct hash_table *));
-static unsigned int hash_expr  PARAMS ((rtx, enum machine_mode, int *, int));
-static unsigned int hash_expr_1 PARAMS ((rtx, enum machine_mode, int *));
-static unsigned int hash_string_1 PARAMS ((const char *));
-static unsigned int hash_set   PARAMS ((int, int));
-static int expr_equiv_p                PARAMS ((rtx, rtx));
-static void record_last_reg_set_info PARAMS ((rtx, int));
-static void record_last_mem_set_info PARAMS ((rtx));
-static void record_last_set_info PARAMS ((rtx, rtx, void *));
-static void compute_hash_table PARAMS ((struct hash_table *));
-static void alloc_hash_table PARAMS ((int, struct hash_table *, int));
-static void free_hash_table PARAMS ((struct hash_table *));
-static void compute_hash_table_work PARAMS ((struct hash_table *));
-static void dump_hash_table    PARAMS ((FILE *, const char *,
-                                       struct hash_table *));
-static struct expr *lookup_expr        PARAMS ((rtx, struct hash_table *));
-static struct expr *lookup_set PARAMS ((unsigned int, struct hash_table *));
-static struct expr *next_set   PARAMS ((unsigned int, struct expr *));
-static void reset_opr_set_tables PARAMS ((void));
-static int oprs_not_set_p      PARAMS ((rtx, rtx));
-static void mark_call          PARAMS ((rtx));
-static void mark_set           PARAMS ((rtx, rtx));
-static void mark_clobber       PARAMS ((rtx, rtx));
-static void mark_oprs_set      PARAMS ((rtx));
-static void alloc_cprop_mem    PARAMS ((int, int));
-static void free_cprop_mem     PARAMS ((void));
-static void compute_transp     PARAMS ((rtx, int, sbitmap *, int));
-static void compute_transpout  PARAMS ((void));
-static void compute_local_properties PARAMS ((sbitmap *, sbitmap *, sbitmap *,
-                                             struct hash_table *));
-static void compute_cprop_data PARAMS ((void));
-static void find_used_regs     PARAMS ((rtx *, void *));
-static int try_replace_reg     PARAMS ((rtx, rtx, rtx));
-static struct expr *find_avail_set PARAMS ((int, rtx));
-static int cprop_jump          PARAMS ((basic_block, rtx, rtx, rtx, rtx));
-static void mems_conflict_for_gcse_p PARAMS ((rtx, rtx, void *));
-static int load_killed_in_block_p    PARAMS ((basic_block, int, rtx, int));
-static void canon_list_insert        PARAMS ((rtx, rtx, void *));
-static int cprop_insn          PARAMS ((rtx, int));
-static int cprop               PARAMS ((int));
-static void find_implicit_sets PARAMS ((void));
-static int one_cprop_pass      PARAMS ((int, int, int));
-static bool constprop_register PARAMS ((rtx, rtx, rtx, int));
-static struct expr *find_bypass_set PARAMS ((int, int));
-static bool reg_killed_on_edge     PARAMS ((rtx, edge));
-static int bypass_block                    PARAMS ((basic_block, rtx, rtx));
-static int bypass_conditional_jumps PARAMS ((void));
-static void alloc_pre_mem      PARAMS ((int, int));
-static void free_pre_mem       PARAMS ((void));
-static void compute_pre_data   PARAMS ((void));
-static int pre_expr_reaches_here_p PARAMS ((basic_block, struct expr *,
-                                           basic_block));
-static void insert_insn_end_bb PARAMS ((struct expr *, basic_block, int));
-static void pre_insert_copy_insn PARAMS ((struct expr *, rtx));
-static void pre_insert_copies  PARAMS ((void));
-static int pre_delete          PARAMS ((void));
-static int pre_gcse            PARAMS ((void));
-static int one_pre_gcse_pass   PARAMS ((int));
-static void add_label_notes    PARAMS ((rtx, rtx));
-static void alloc_code_hoist_mem PARAMS ((int, int));
-static void free_code_hoist_mem        PARAMS ((void));
-static void compute_code_hoist_vbeinout        PARAMS ((void));
-static void compute_code_hoist_data PARAMS ((void));
-static int hoist_expr_reaches_here_p PARAMS ((basic_block, int, basic_block,
-                                             char *));
-static void hoist_code         PARAMS ((void));
-static int one_code_hoisting_pass PARAMS ((void));
-static void alloc_rd_mem       PARAMS ((int, int));
-static void free_rd_mem                PARAMS ((void));
-static void handle_rd_kill_set PARAMS ((rtx, int, basic_block));
-static void compute_kill_rd    PARAMS ((void));
-static void compute_rd         PARAMS ((void));
-static void alloc_avail_expr_mem PARAMS ((int, int));
-static void free_avail_expr_mem PARAMS ((void));
-static void compute_ae_gen     PARAMS ((struct hash_table *));
-static int expr_killed_p       PARAMS ((rtx, basic_block));
-static void compute_ae_kill    PARAMS ((sbitmap *, sbitmap *, struct hash_table *));
-static int expr_reaches_here_p PARAMS ((struct occr *, struct expr *,
-                                        basic_block, int));
-static rtx computing_insn      PARAMS ((struct expr *, rtx));
-static int def_reaches_here_p  PARAMS ((rtx, rtx));
-static int can_disregard_other_sets PARAMS ((struct reg_set **, rtx, int));
-static int handle_avail_expr   PARAMS ((rtx, struct expr *));
-static int classic_gcse                PARAMS ((void));
-static int one_classic_gcse_pass PARAMS ((int));
-static void invalidate_nonnull_info PARAMS ((rtx, rtx, void *));
-static int delete_null_pointer_checks_1 PARAMS ((unsigned int *,
-                                                 sbitmap *, sbitmap *,
-                                                 struct null_pointer_info *));
-static rtx process_insert_insn PARAMS ((struct expr *));
-static int pre_edge_insert     PARAMS ((struct edge_list *, struct expr **));
-static int expr_reaches_here_p_work PARAMS ((struct occr *, struct expr *,
-                                            basic_block, int, char *));
-static int pre_expr_reaches_here_p_work        PARAMS ((basic_block, struct expr *,
-                                                basic_block, char *));
-static struct ls_expr * ldst_entry     PARAMS ((rtx));
-static void free_ldst_entry            PARAMS ((struct ls_expr *));
-static void free_ldst_mems             PARAMS ((void));
-static void print_ldst_list            PARAMS ((FILE *));
-static struct ls_expr * find_rtx_in_ldst PARAMS ((rtx));
-static int enumerate_ldsts             PARAMS ((void));
-static inline struct ls_expr * first_ls_expr PARAMS ((void));
-static inline struct ls_expr * next_ls_expr  PARAMS ((struct ls_expr *));
-static int simple_mem                  PARAMS ((rtx));
-static void invalidate_any_buried_refs PARAMS ((rtx));
-static void compute_ld_motion_mems     PARAMS ((void));
-static void trim_ld_motion_mems                PARAMS ((void));
-static void update_ld_motion_stores    PARAMS ((struct expr *));
-static void reg_set_info               PARAMS ((rtx, rtx, void *));
-static bool store_ops_ok               PARAMS ((rtx, int *));
-static rtx extract_mentioned_regs      PARAMS ((rtx));
-static rtx extract_mentioned_regs_helper PARAMS ((rtx, rtx));
-static void find_moveable_store                PARAMS ((rtx, int *, int *));
-static int compute_store_table         PARAMS ((void));
-static bool load_kills_store           PARAMS ((rtx, rtx));
-static bool find_loads                 PARAMS ((rtx, rtx));
-static bool store_killed_in_insn       PARAMS ((rtx, rtx, rtx));
-static bool store_killed_after         PARAMS ((rtx, rtx, rtx, basic_block,
-                                                int *, rtx *));
-static bool store_killed_before                PARAMS ((rtx, rtx, rtx, basic_block,
-                                                int *));
-static void build_store_vectors                PARAMS ((void));
-static void insert_insn_start_bb       PARAMS ((rtx, basic_block));
-static int insert_store                        PARAMS ((struct ls_expr *, edge));
-static void replace_store_insn         PARAMS ((rtx, rtx, basic_block));
-static void delete_store               PARAMS ((struct ls_expr *,
-                                                basic_block));
-static void free_store_memory          PARAMS ((void));
-static void store_motion               PARAMS ((void));
-static void free_insn_expr_list_list   PARAMS ((rtx *));
-static void clear_modify_mem_tables    PARAMS ((void));
-static void free_modify_mem_tables     PARAMS ((void));
-static rtx gcse_emit_move_after                PARAMS ((rtx, rtx, rtx));
-static void local_cprop_find_used_regs PARAMS ((rtx *, void *));
-static bool do_local_cprop             PARAMS ((rtx, rtx, int, rtx*));
-static bool adjust_libcall_notes       PARAMS ((rtx, rtx, rtx, rtx*));
-static void local_cprop_pass           PARAMS ((int));
+static void compute_can_copy (void);
+static char *gmalloc (unsigned int);
+static char *grealloc (char *, unsigned int);
+static char *gcse_alloc (unsigned long);
+static void alloc_gcse_mem (rtx);
+static void free_gcse_mem (void);
+static void alloc_reg_set_mem (int);
+static void free_reg_set_mem (void);
+static int get_bitmap_width (int, int, int);
+static void record_one_set (int, rtx);
+static void record_set_info (rtx, rtx, void *);
+static void compute_sets (rtx);
+static void hash_scan_insn (rtx, struct hash_table *, int);
+static void hash_scan_set (rtx, rtx, struct hash_table *);
+static void hash_scan_clobber (rtx, rtx, struct hash_table *);
+static void hash_scan_call (rtx, rtx, struct hash_table *);
+static int want_to_gcse_p (rtx);
+static bool gcse_constant_p (rtx);
+static int oprs_unchanged_p (rtx, rtx, int);
+static int oprs_anticipatable_p (rtx, rtx);
+static int oprs_available_p (rtx, rtx);
+static void insert_expr_in_table (rtx, enum machine_mode, rtx, int, int,
+                                 struct hash_table *);
+static void insert_set_in_table (rtx, rtx, struct hash_table *);
+static unsigned int hash_expr (rtx, enum machine_mode, int *, int);
+static unsigned int hash_expr_1 (rtx, enum machine_mode, int *);
+static unsigned int hash_string_1 (const char *);
+static unsigned int hash_set (int, int);
+static int expr_equiv_p (rtx, rtx);
+static void record_last_reg_set_info (rtx, int);
+static void record_last_mem_set_info (rtx);
+static void record_last_set_info (rtx, rtx, void *);
+static void compute_hash_table (struct hash_table *);
+static void alloc_hash_table (int, struct hash_table *, int);
+static void free_hash_table (struct hash_table *);
+static void compute_hash_table_work (struct hash_table *);
+static void dump_hash_table (FILE *, const char *, struct hash_table *);
+static struct expr *lookup_expr (rtx, struct hash_table *);
+static struct expr *lookup_set (unsigned int, struct hash_table *);
+static struct expr *next_set (unsigned int, struct expr *);
+static void reset_opr_set_tables (void);
+static int oprs_not_set_p (rtx, rtx);
+static void mark_call (rtx);
+static void mark_set (rtx, rtx);
+static void mark_clobber (rtx, rtx);
+static void mark_oprs_set (rtx);
+static void alloc_cprop_mem (int, int);
+static void free_cprop_mem (void);
+static void compute_transp (rtx, int, sbitmap *, int);
+static void compute_transpout (void);
+static void compute_local_properties (sbitmap *, sbitmap *, sbitmap *,
+                                     struct hash_table *);
+static void compute_cprop_data (void);
+static void find_used_regs (rtx *, void *);
+static int try_replace_reg (rtx, rtx, rtx);
+static struct expr *find_avail_set (int, rtx);
+static int cprop_jump (basic_block, rtx, rtx, rtx, rtx);
+static void mems_conflict_for_gcse_p (rtx, rtx, void *);
+static int load_killed_in_block_p (basic_block, int, rtx, int);
+static void canon_list_insert (rtx, rtx, void *);
+static int cprop_insn (rtx, int);
+static int cprop (int);
+static void find_implicit_sets (void);
+static int one_cprop_pass (int, int, int);
+static bool constprop_register (rtx, rtx, rtx, int);
+static struct expr *find_bypass_set (int, int);
+static bool reg_killed_on_edge (rtx, edge);
+static int bypass_block (basic_block, rtx, rtx);
+static int bypass_conditional_jumps (void);
+static void alloc_pre_mem (int, int);
+static void free_pre_mem (void);
+static void compute_pre_data (void);
+static int pre_expr_reaches_here_p (basic_block, struct expr *,
+                                   basic_block);
+static void insert_insn_end_bb (struct expr *, basic_block, int);
+static void pre_insert_copy_insn (struct expr *, rtx);
+static void pre_insert_copies (void);
+static int pre_delete (void);
+static int pre_gcse (void);
+static int one_pre_gcse_pass (int);
+static void add_label_notes (rtx, rtx);
+static void alloc_code_hoist_mem (int, int);
+static void free_code_hoist_mem (void);
+static void compute_code_hoist_vbeinout (void);
+static void compute_code_hoist_data (void);
+static int hoist_expr_reaches_here_p (basic_block, int, basic_block, char *);
+static void hoist_code (void);
+static int one_code_hoisting_pass (void);
+static void alloc_rd_mem (int, int);
+static void free_rd_mem (void);
+static void handle_rd_kill_set (rtx, int, basic_block);
+static void compute_kill_rd (void);
+static void compute_rd (void);
+static void alloc_avail_expr_mem (int, int);
+static void free_avail_expr_mem (void);
+static void compute_ae_gen (struct hash_table *);
+static int expr_killed_p (rtx, basic_block);
+static void compute_ae_kill (sbitmap *, sbitmap *, struct hash_table *);
+static int expr_reaches_here_p (struct occr *, struct expr *, basic_block,
+                               int);
+static rtx computing_insn (struct expr *, rtx);
+static int def_reaches_here_p (rtx, rtx);
+static int can_disregard_other_sets (struct reg_set **, rtx, int);
+static int handle_avail_expr (rtx, struct expr *);
+static int classic_gcse (void);
+static int one_classic_gcse_pass (int);
+static void invalidate_nonnull_info (rtx, rtx, void *);
+static int delete_null_pointer_checks_1 (unsigned int *, sbitmap *, sbitmap *,
+                                        struct null_pointer_info *);
+static rtx process_insert_insn (struct expr *);
+static int pre_edge_insert (struct edge_list *, struct expr **);
+static int expr_reaches_here_p_work (struct occr *, struct expr *,
+                                    basic_block, int, char *);
+static int pre_expr_reaches_here_p_work (basic_block, struct expr *,
+                                        basic_block, char *);
+static struct ls_expr * ldst_entry (rtx);
+static void free_ldst_entry (struct ls_expr *);
+static void free_ldst_mems (void);
+static void print_ldst_list (FILE *);
+static struct ls_expr * find_rtx_in_ldst (rtx);
+static int enumerate_ldsts (void);
+static inline struct ls_expr * first_ls_expr (void);
+static inline struct ls_expr * next_ls_expr (struct ls_expr *);
+static int simple_mem (rtx);
+static void invalidate_any_buried_refs (rtx);
+static void compute_ld_motion_mems (void);
+static void trim_ld_motion_mems (void);
+static void update_ld_motion_stores (struct expr *);
+static void reg_set_info (rtx, rtx, void *);
+static bool store_ops_ok (rtx, int *);
+static rtx extract_mentioned_regs (rtx);
+static rtx extract_mentioned_regs_helper (rtx, rtx);
+static void find_moveable_store (rtx, int *, int *);
+static int compute_store_table (void);
+static bool load_kills_store (rtx, rtx);
+static bool find_loads (rtx, rtx);
+static bool store_killed_in_insn (rtx, rtx, rtx);
+static bool store_killed_after (rtx, rtx, rtx, basic_block, int *, rtx *);
+static bool store_killed_before (rtx, rtx, rtx, basic_block, int *);
+static void build_store_vectors (void);
+static void insert_insn_start_bb (rtx, basic_block);
+static int insert_store (struct ls_expr *, edge);
+static void replace_store_insn (rtx, rtx, basic_block);
+static void delete_store (struct ls_expr *, basic_block);
+static void free_store_memory (void);
+static void store_motion (void);
+static void free_insn_expr_list_list (rtx *);
+static void clear_modify_mem_tables (void);
+static void free_modify_mem_tables (void);
+static rtx gcse_emit_move_after (rtx, rtx, rtx);
+static void local_cprop_find_used_regs (rtx *, void *);
+static bool do_local_cprop (rtx, rtx, int, rtx*);
+static bool adjust_libcall_notes (rtx, rtx, rtx, rtx*);
+static void local_cprop_pass (int);
 \f
 /* Entry point for global common subexpression elimination.
    F is the first instruction in the function.  */
 
 int
-gcse_main (f, file)
-     rtx f;
-     FILE *file;
+gcse_main (rtx f, FILE *file)
 {
   int changed, pass;
   /* Bytes used at start of pass.  */
@@ -917,7 +909,7 @@ static char can_copy[(int) NUM_MACHINE_MODES];
 /* Compute which modes support reg/reg copy operations.  */
 
 static void
-compute_can_copy ()
+compute_can_copy (void)
 {
   int i;
 #ifndef AVOID_CCMODE_COPIES
@@ -947,8 +939,7 @@ compute_can_copy ()
 /* Returns whether the mode supports reg/reg copy operations.  */
 
 bool
-can_copy_p (mode)
-     enum machine_mode mode;
+can_copy_p (enum machine_mode mode)
 {
   static bool can_copy_init_p = false;
 
@@ -964,8 +955,7 @@ can_copy_p (mode)
 /* Cover function to xmalloc to record bytes allocated.  */
 
 static char *
-gmalloc (size)
-     unsigned int size;
+gmalloc (unsigned int size)
 {
   bytes_used += size;
   return xmalloc (size);
@@ -976,9 +966,7 @@ gmalloc (size)
    It won't affect memory usage stats much anyway.  */
 
 static char *
-grealloc (ptr, size)
-     char *ptr;
-     unsigned int size;
+grealloc (char *ptr, unsigned int size)
 {
   return xrealloc (ptr, size);
 }
@@ -986,8 +974,7 @@ grealloc (ptr, size)
 /* Cover function to obstack_alloc.  */
 
 static char *
-gcse_alloc (size)
-     unsigned long size;
+gcse_alloc (unsigned long size)
 {
   bytes_used += size;
   return (char *) obstack_alloc (&gcse_obstack, size);
@@ -999,8 +986,7 @@ gcse_alloc (size)
    This is called at the start of each pass.  */
 
 static void
-alloc_gcse_mem (f)
-     rtx f;
+alloc_gcse_mem (rtx f)
 {
   int i, n;
   rtx insn;
@@ -1050,7 +1036,7 @@ alloc_gcse_mem (f)
 /* Free memory allocated by alloc_gcse_mem.  */
 
 static void
-free_gcse_mem ()
+free_gcse_mem (void)
 {
   free (uid_cuid);
   free (cuid_insn);
@@ -1081,10 +1067,7 @@ free_gcse_mem ()
    less space.  */
 
 static int
-get_bitmap_width (n, x, y)
-     int n;
-     int x;
-     int y;
+get_bitmap_width (int n, int x, int y)
 {
   /* It's not really worth figuring out *exactly* how much memory will
      be used by a particular choice.  The important thing is to get
@@ -1134,11 +1117,7 @@ get_bitmap_width (n, x, y)
    ABSALTERED.  */
 
 static void
-compute_local_properties (transp, comp, antloc, table)
-     sbitmap *transp;
-     sbitmap *comp;
-     sbitmap *antloc;
-     struct hash_table *table;
+compute_local_properties (sbitmap *transp, sbitmap *comp, sbitmap *antloc, struct hash_table *table)
 {
   unsigned int i;
 
@@ -1210,8 +1189,7 @@ compute_local_properties (transp, comp, antloc, table)
 static struct obstack reg_set_obstack;
 
 static void
-alloc_reg_set_mem (n_regs)
-     int n_regs;
+alloc_reg_set_mem (int n_regs)
 {
   unsigned int n;
 
@@ -1224,7 +1202,7 @@ alloc_reg_set_mem (n_regs)
 }
 
 static void
-free_reg_set_mem ()
+free_reg_set_mem (void)
 {
   free (reg_set_table);
   obstack_free (&reg_set_obstack, NULL);
@@ -1233,9 +1211,7 @@ free_reg_set_mem ()
 /* Record REGNO in the reg_set table.  */
 
 static void
-record_one_set (regno, insn)
-     int regno;
-     rtx insn;
+record_one_set (int regno, rtx insn)
 {
   /* Allocate a new reg_set element and link it onto the list.  */
   struct reg_set *new_reg_info;
@@ -1266,9 +1242,7 @@ record_one_set (regno, insn)
    occurring.  */
 
 static void
-record_set_info (dest, setter, data)
-     rtx dest, setter ATTRIBUTE_UNUSED;
-     void *data;
+record_set_info (rtx dest, rtx setter ATTRIBUTE_UNUSED, void *data)
 {
   rtx record_set_insn = (rtx) data;
 
@@ -1282,8 +1256,7 @@ record_set_info (dest, setter, data)
    `reg_set_table' for further documentation.  */
 
 static void
-compute_sets (f)
-     rtx f;
+compute_sets (rtx f)
 {
   rtx insn;
 
@@ -1310,8 +1283,7 @@ static basic_block current_bb;
 
 static GTY(()) rtx test_insn;
 static int
-want_to_gcse_p (x)
-     rtx x;
+want_to_gcse_p (rtx x)
 {
   int num_clobbers = 0;
   int icode;
@@ -1362,9 +1334,7 @@ want_to_gcse_p (x)
    or from INSN to the end of INSN's basic block (if AVAIL_P != 0).  */
 
 static int
-oprs_unchanged_p (x, insn, avail_p)
-     rtx x, insn;
-     int avail_p;
+oprs_unchanged_p (rtx x, rtx insn, int avail_p)
 {
   int i, j;
   enum rtx_code code;
@@ -1457,9 +1427,8 @@ static rtx gcse_mem_operand;
    gcse_mems_conflict_p to a nonzero value.  */
 
 static void
-mems_conflict_for_gcse_p (dest, setter, data)
-     rtx dest, setter ATTRIBUTE_UNUSED;
-     void *data ATTRIBUTE_UNUSED;
+mems_conflict_for_gcse_p (rtx dest, rtx setter ATTRIBUTE_UNUSED,
+                         void *data ATTRIBUTE_UNUSED)
 {
   while (GET_CODE (dest) == SUBREG
         || GET_CODE (dest) == ZERO_EXTRACT
@@ -1497,11 +1466,7 @@ mems_conflict_for_gcse_p (dest, setter, data)
    AVAIL_P to 0.  */
 
 static int
-load_killed_in_block_p (bb, uid_limit, x, avail_p)
-     basic_block bb;
-     int uid_limit;
-     rtx x;
-     int avail_p;
+load_killed_in_block_p (basic_block bb, int uid_limit, rtx x, int avail_p)
 {
   rtx list_entry = modify_mem_list[bb->index];
   while (list_entry)
@@ -1544,8 +1509,7 @@ load_killed_in_block_p (bb, uid_limit, x, avail_p)
    the start of INSN's basic block up to but not including INSN.  */
 
 static int
-oprs_anticipatable_p (x, insn)
-     rtx x, insn;
+oprs_anticipatable_p (rtx x, rtx insn)
 {
   return oprs_unchanged_p (x, insn, 0);
 }
@@ -1554,8 +1518,7 @@ oprs_anticipatable_p (x, insn)
    INSN to the end of INSN's basic block.  */
 
 static int
-oprs_available_p (x, insn)
-     rtx x, insn;
+oprs_available_p (rtx x, rtx insn)
 {
   return oprs_unchanged_p (x, insn, 1);
 }
@@ -1569,11 +1532,7 @@ oprs_available_p (x, insn)
    ??? One might want to merge this with canon_hash.  Later.  */
 
 static unsigned int
-hash_expr (x, mode, do_not_record_p, hash_table_size)
-     rtx x;
-     enum machine_mode mode;
-     int *do_not_record_p;
-     int hash_table_size;
+hash_expr (rtx x, enum machine_mode mode, int *do_not_record_p, int hash_table_size)
 {
   unsigned int hash;
 
@@ -1586,8 +1545,7 @@ hash_expr (x, mode, do_not_record_p, hash_table_size)
 /* Hash a string.  Just add its bytes up.  */
 
 static inline unsigned
-hash_string_1 (ps)
-     const char *ps;
+hash_string_1 (const char *ps)
 {
   unsigned hash = 0;
   const unsigned char *p = (const unsigned char *) ps;
@@ -1602,10 +1560,7 @@ hash_string_1 (ps)
 /* Subroutine of hash_expr to do the actual work.  */
 
 static unsigned int
-hash_expr_1 (x, mode, do_not_record_p)
-     rtx x;
-     enum machine_mode mode;
-     int *do_not_record_p;
+hash_expr_1 (rtx x, enum machine_mode mode, int *do_not_record_p)
 {
   int i, j;
   unsigned hash = 0;
@@ -1793,9 +1748,7 @@ hash_expr_1 (x, mode, do_not_record_p)
    ??? May need to make things more elaborate.  Later, as necessary.  */
 
 static unsigned int
-hash_set (regno, hash_table_size)
-     int regno;
-     int hash_table_size;
+hash_set (int regno, int hash_table_size)
 {
   unsigned int hash;
 
@@ -1807,8 +1760,7 @@ hash_set (regno, hash_table_size)
    ??? Borrowed from cse.c.  Might want to remerge with cse.c.  Later.  */
 
 static int
-expr_equiv_p (x, y)
-     rtx x, y;
+expr_equiv_p (rtx x, rtx y)
 {
   int i, j;
   enum rtx_code code;
@@ -1955,12 +1907,8 @@ expr_equiv_p (x, y)
    AVAIL_P is nonzero if X is an available expression.  */
 
 static void
-insert_expr_in_table (x, mode, insn, antic_p, avail_p, table)
-     rtx x;
-     enum machine_mode mode;
-     rtx insn;
-     int antic_p, avail_p;
-     struct hash_table *table;
+insert_expr_in_table (rtx x, enum machine_mode mode, rtx insn, int antic_p,
+                     int avail_p, struct hash_table *table)
 {
   int found, do_not_record_p;
   unsigned int hash;
@@ -2084,10 +2032,7 @@ insert_expr_in_table (x, mode, insn, antic_p, avail_p, table)
    basic block.  */
 
 static void
-insert_set_in_table (x, insn, table)
-     rtx x;
-     rtx insn;
-     struct hash_table *table;
+insert_set_in_table (rtx x, rtx insn, struct hash_table *table)
 {
   int found;
   unsigned int hash;
@@ -2170,8 +2115,7 @@ insert_set_in_table (x, insn, table)
    the purposes of GCSE's constant propagation.  */
 
 static bool
-gcse_constant_p (x)
-     rtx x;
+gcse_constant_p (rtx x)
 {
   /* Consider a COMPARE of two integers constant.  */
   if (GET_CODE (x) == COMPARE
@@ -2189,9 +2133,7 @@ gcse_constant_p (x)
    expression one).  */
 
 static void
-hash_scan_set (pat, insn, table)
-     rtx pat, insn;
-     struct hash_table *table;
+hash_scan_set (rtx pat, rtx insn, struct hash_table *table)
 {
   rtx src = SET_SRC (pat);
   rtx dest = SET_DEST (pat);
@@ -2265,17 +2207,15 @@ hash_scan_set (pat, insn, table)
 }
 
 static void
-hash_scan_clobber (x, insn, table)
-     rtx x ATTRIBUTE_UNUSED, insn ATTRIBUTE_UNUSED;
-     struct hash_table *table ATTRIBUTE_UNUSED;
+hash_scan_clobber (rtx x ATTRIBUTE_UNUSED, rtx insn ATTRIBUTE_UNUSED,
+                  struct hash_table *table ATTRIBUTE_UNUSED)
 {
   /* Currently nothing to do.  */
 }
 
 static void
-hash_scan_call (x, insn, table)
-     rtx x ATTRIBUTE_UNUSED, insn ATTRIBUTE_UNUSED;
-     struct hash_table *table ATTRIBUTE_UNUSED;
+hash_scan_call (rtx x ATTRIBUTE_UNUSED, rtx insn ATTRIBUTE_UNUSED,
+               struct hash_table *table ATTRIBUTE_UNUSED)
 {
   /* Currently nothing to do.  */
 }
@@ -2294,10 +2234,7 @@ hash_scan_call (x, insn, table)
    not record any expressions.  */
 
 static void
-hash_scan_insn (insn, table, in_libcall_block)
-     rtx insn;
-     struct hash_table *table;
-     int in_libcall_block;
+hash_scan_insn (rtx insn, struct hash_table *table, int in_libcall_block)
 {
   rtx pat = PATTERN (insn);
   int i;
@@ -2330,10 +2267,7 @@ hash_scan_insn (insn, table, in_libcall_block)
 }
 
 static void
-dump_hash_table (file, name, table)
-     FILE *file;
-     const char *name;
-     struct hash_table *table;
+dump_hash_table (FILE *file, const char *name, struct hash_table *table)
 {
   int i;
   /* Flattened out table, so it's printed in proper order.  */
@@ -2386,9 +2320,7 @@ dump_hash_table (file, name, table)
    and is used to compute "transparency".  */
 
 static void
-record_last_reg_set_info (insn, regno)
-     rtx insn;
-     int regno;
+record_last_reg_set_info (rtx insn, int regno)
 {
   struct reg_avail_info *info = &reg_avail_info[regno];
   int cuid = INSN_CUID (insn);
@@ -2408,10 +2340,8 @@ record_last_reg_set_info (insn, regno)
    taken off pairwise.  */
 
 static void
-canon_list_insert (dest, unused1, v_insn)
-     rtx    dest ATTRIBUTE_UNUSED;
-     rtx    unused1 ATTRIBUTE_UNUSED;
-     void * v_insn;
+canon_list_insert (rtx dest ATTRIBUTE_UNUSED, rtx unused1 ATTRIBUTE_UNUSED,
+                  void * v_insn)
 {
   rtx dest_addr, insn;
   int bb;
@@ -2446,8 +2376,7 @@ canon_list_insert (dest, unused1, v_insn)
    a CALL_INSN).  We merely need to record which insns modify memory.  */
 
 static void
-record_last_mem_set_info (insn)
-     rtx insn;
+record_last_mem_set_info (rtx insn)
 {
   int bb = BLOCK_NUM (insn);
 
@@ -2474,9 +2403,7 @@ record_last_mem_set_info (insn)
    the SET is taking place.  */
 
 static void
-record_last_set_info (dest, setter, data)
-     rtx dest, setter ATTRIBUTE_UNUSED;
-     void *data;
+record_last_set_info (rtx dest, rtx setter ATTRIBUTE_UNUSED, void *data)
 {
   rtx last_set_insn = (rtx) data;
 
@@ -2508,8 +2435,7 @@ record_last_set_info (dest, setter, data)
    TABLE is the table computed.  */
 
 static void
-compute_hash_table_work (table)
-     struct hash_table *table;
+compute_hash_table_work (struct hash_table *table)
 {
   unsigned int i;
 
@@ -2600,10 +2526,7 @@ compute_hash_table_work (table)
    be created.  */
 
 static void
-alloc_hash_table (n_insns, table, set_p)
-     int n_insns;
-     struct hash_table *table;
-     int set_p;
+alloc_hash_table (int n_insns, struct hash_table *table, int set_p)
 {
   int n;
 
@@ -2623,8 +2546,7 @@ alloc_hash_table (n_insns, table, set_p)
 /* Free things allocated by alloc_hash_table.  */
 
 static void
-free_hash_table (table)
-     struct hash_table *table;
+free_hash_table (struct hash_table *table)
 {
   free (table->table);
 }
@@ -2633,8 +2555,7 @@ free_hash_table (table)
    expression hash table.  */
 
 static void
-compute_hash_table (table)
-    struct hash_table *table;
+compute_hash_table (struct hash_table *table)
 {
   /* Initialize count of number of entries in hash table.  */
   table->n_elems = 0;
@@ -2650,9 +2571,7 @@ compute_hash_table (table)
    The result is a pointer to the table entry, or NULL if not found.  */
 
 static struct expr *
-lookup_expr (pat, table)
-     rtx pat;
-     struct hash_table *table;
+lookup_expr (rtx pat, struct hash_table *table)
 {
   int do_not_record_p;
   unsigned int hash = hash_expr (pat, GET_MODE (pat), &do_not_record_p,
@@ -2674,9 +2593,7 @@ lookup_expr (pat, table)
    table entry, or NULL if not found.  */
 
 static struct expr *
-lookup_set (regno, table)
-     unsigned int regno;
-     struct hash_table *table;
+lookup_set (unsigned int regno, struct hash_table *table)
 {
   unsigned int hash = hash_set (regno, table->size);
   struct expr *expr;
@@ -2692,9 +2609,7 @@ lookup_set (regno, table)
 /* Return the next entry for REGNO in list EXPR.  */
 
 static struct expr *
-next_set (regno, expr)
-     unsigned int regno;
-     struct expr *expr;
+next_set (unsigned int regno, struct expr *expr)
 {
   do
     expr = expr->next_same_hash;
@@ -2707,8 +2622,7 @@ next_set (regno, expr)
    types may be mixed.  */
 
 static void
-free_insn_expr_list_list (listp)
-     rtx *listp;
+free_insn_expr_list_list (rtx *listp)
 {
   rtx list, next;
 
@@ -2726,7 +2640,7 @@ free_insn_expr_list_list (listp)
 
 /* Clear canon_modify_mem_list and modify_mem_list tables.  */
 static void
-clear_modify_mem_tables ()
+clear_modify_mem_tables (void)
 {
   int i;
 
@@ -2743,7 +2657,7 @@ clear_modify_mem_tables ()
 /* Release memory used by modify_mem_list_set and canon_modify_mem_list_set.  */
 
 static void
-free_modify_mem_tables ()
+free_modify_mem_tables (void)
 {
   clear_modify_mem_tables ();
   free (modify_mem_list);
@@ -2756,7 +2670,7 @@ free_modify_mem_tables ()
    start of the block].  */
 
 static void
-reset_opr_set_tables ()
+reset_opr_set_tables (void)
 {
   /* Maintain a bitmap of which regs have been set since beginning of
      the block.  */
@@ -2772,8 +2686,7 @@ reset_opr_set_tables ()
    INSN's basic block.  */
 
 static int
-oprs_not_set_p (x, insn)
-     rtx x, insn;
+oprs_not_set_p (rtx x, rtx insn)
 {
   int i, j;
   enum rtx_code code;
@@ -2836,8 +2749,7 @@ oprs_not_set_p (x, insn)
 /* Mark things set by a CALL.  */
 
 static void
-mark_call (insn)
-     rtx insn;
+mark_call (rtx insn)
 {
   if (! CONST_OR_PURE_CALL_P (insn))
     record_last_mem_set_info (insn);
@@ -2846,8 +2758,7 @@ mark_call (insn)
 /* Mark things set by a SET.  */
 
 static void
-mark_set (pat, insn)
-     rtx pat, insn;
+mark_set (rtx pat, rtx insn)
 {
   rtx dest = SET_DEST (pat);
 
@@ -2869,8 +2780,7 @@ mark_set (pat, insn)
 /* Record things set by a CLOBBER.  */
 
 static void
-mark_clobber (pat, insn)
-     rtx pat, insn;
+mark_clobber (rtx pat, rtx insn)
 {
   rtx clob = XEXP (pat, 0);
 
@@ -2887,8 +2797,7 @@ mark_clobber (pat, insn)
    This data is used by oprs_not_set_p.  */
 
 static void
-mark_oprs_set (insn)
-     rtx insn;
+mark_oprs_set (rtx insn)
 {
   rtx pat = PATTERN (insn);
   int i;
@@ -2920,8 +2829,7 @@ mark_oprs_set (insn)
 /* Allocate reaching def variables.  */
 
 static void
-alloc_rd_mem (n_blocks, n_insns)
-     int n_blocks, n_insns;
+alloc_rd_mem (int n_blocks, int n_insns)
 {
   rd_kill = (sbitmap *) sbitmap_vector_alloc (n_blocks, n_insns);
   sbitmap_vector_zero (rd_kill, n_blocks);
@@ -2939,7 +2847,7 @@ alloc_rd_mem (n_blocks, n_insns)
 /* Free reaching def variables.  */
 
 static void
-free_rd_mem ()
+free_rd_mem (void)
 {
   sbitmap_vector_free (rd_kill);
   sbitmap_vector_free (rd_gen);
@@ -2950,10 +2858,7 @@ free_rd_mem ()
 /* Add INSN to the kills of BB.  REGNO, set in BB, is killed by INSN.  */
 
 static void
-handle_rd_kill_set (insn, regno, bb)
-     rtx insn;
-     int regno;
-     basic_block bb;
+handle_rd_kill_set (rtx insn, int regno, basic_block bb)
 {
   struct reg_set *this_reg;
 
@@ -2965,7 +2870,7 @@ handle_rd_kill_set (insn, regno, bb)
 /* Compute the set of kill's for reaching definitions.  */
 
 static void
-compute_kill_rd ()
+compute_kill_rd (void)
 {
   int cuid;
   unsigned int regno;
@@ -3020,7 +2925,7 @@ compute_kill_rd ()
    expressions but applied to the gens and kills of reaching definitions.  */
 
 static void
-compute_rd ()
+compute_rd (void)
 {
   int changed, passes;
   basic_block bb;
@@ -3051,8 +2956,7 @@ compute_rd ()
 /* Allocate memory for available expression computation.  */
 
 static void
-alloc_avail_expr_mem (n_blocks, n_exprs)
-     int n_blocks, n_exprs;
+alloc_avail_expr_mem (int n_blocks, int n_exprs)
 {
   ae_kill = (sbitmap *) sbitmap_vector_alloc (n_blocks, n_exprs);
   sbitmap_vector_zero (ae_kill, n_blocks);
@@ -3068,7 +2972,7 @@ alloc_avail_expr_mem (n_blocks, n_exprs)
 }
 
 static void
-free_avail_expr_mem ()
+free_avail_expr_mem (void)
 {
   sbitmap_vector_free (ae_kill);
   sbitmap_vector_free (ae_gen);
@@ -3079,8 +2983,7 @@ free_avail_expr_mem ()
 /* Compute the set of available expressions generated in each basic block.  */
 
 static void
-compute_ae_gen (expr_hash_table)
-     struct hash_table *expr_hash_table;
+compute_ae_gen (struct hash_table *expr_hash_table)
 {
   unsigned int i;
   struct expr *expr;
@@ -3099,9 +3002,7 @@ compute_ae_gen (expr_hash_table)
 /* Return nonzero if expression X is killed in BB.  */
 
 static int
-expr_killed_p (x, bb)
-     rtx x;
-     basic_block bb;
+expr_killed_p (rtx x, basic_block bb)
 {
   int i, j;
   enum rtx_code code;
@@ -3162,9 +3063,8 @@ expr_killed_p (x, bb)
 /* Compute the set of available expressions killed in each basic block.  */
 
 static void
-compute_ae_kill (ae_gen, ae_kill, expr_hash_table)
-     sbitmap *ae_gen, *ae_kill;
-     struct hash_table *expr_hash_table;
+compute_ae_kill (sbitmap *ae_gen, sbitmap *ae_kill,
+                struct hash_table *expr_hash_table)
 {
   basic_block bb;
   unsigned int i;
@@ -3202,12 +3102,8 @@ compute_ae_kill (ae_gen, ae_kill, expr_hash_table)
    the closest such expression.  */
 
 static int
-expr_reaches_here_p_work (occr, expr, bb, check_self_loop, visited)
-     struct occr *occr;
-     struct expr *expr;
-     basic_block bb;
-     int check_self_loop;
-     char *visited;
+expr_reaches_here_p_work (struct occr *occr, struct expr *expr,
+                         basic_block bb, int check_self_loop, char *visited)
 {
   edge pred;
 
@@ -3264,11 +3160,8 @@ expr_reaches_here_p_work (occr, expr, bb, check_self_loop, visited)
    memory allocated for that function is returned.  */
 
 static int
-expr_reaches_here_p (occr, expr, bb, check_self_loop)
-     struct occr *occr;
-     struct expr *expr;
-     basic_block bb;
-     int check_self_loop;
+expr_reaches_here_p (struct occr *occr, struct expr *expr, basic_block bb,
+                    int check_self_loop)
 {
   int rval;
   char *visited = (char *) xcalloc (last_basic_block, 1);
@@ -3285,9 +3178,7 @@ expr_reaches_here_p (occr, expr, bb, check_self_loop)
    Called only by handle_avail_expr.  */
 
 static rtx
-computing_insn (expr, insn)
-     struct expr *expr;
-     rtx insn;
+computing_insn (struct expr *expr, rtx insn)
 {
   basic_block bb = BLOCK_FOR_INSN (insn);
 
@@ -3350,8 +3241,7 @@ computing_insn (expr, insn)
    Only called by can_disregard_other_sets.  */
 
 static int
-def_reaches_here_p (insn, def_insn)
-     rtx insn, def_insn;
+def_reaches_here_p (rtx insn, rtx def_insn)
 {
   rtx reg;
 
@@ -3387,10 +3277,7 @@ def_reaches_here_p (insn, def_insn)
    always safe to return zero.  */
 
 static int
-can_disregard_other_sets (addr_this_reg, insn, for_combine)
-     struct reg_set **addr_this_reg;
-     rtx insn;
-     int for_combine;
+can_disregard_other_sets (struct reg_set **addr_this_reg, rtx insn, int for_combine)
 {
   int number_of_reaching_defs = 0;
   struct reg_set *this_reg;
@@ -3435,9 +3322,7 @@ can_disregard_other_sets (addr_this_reg, insn, for_combine)
    The result is nonzero if any changes were made.  */
 
 static int
-handle_avail_expr (insn, expr)
-     rtx insn;
-     struct expr *expr;
+handle_avail_expr (rtx insn, struct expr *expr)
 {
   rtx pat, insn_computes_expr, expr_set;
   rtx to;
@@ -3593,7 +3478,7 @@ handle_avail_expr (insn, expr)
    The result is nonzero if a change was made.  */
 
 static int
-classic_gcse ()
+classic_gcse (void)
 {
   int changed;
   rtx insn;
@@ -3652,8 +3537,7 @@ classic_gcse ()
    Return nonzero if a change was made.  */
 
 static int
-one_classic_gcse_pass (pass)
-     int pass;
+one_classic_gcse_pass (int pass)
 {
   int changed = 0;
 
@@ -3706,8 +3590,7 @@ static sbitmap *cprop_avout;
    basic blocks.  N_SETS is the number of sets.  */
 
 static void
-alloc_cprop_mem (n_blocks, n_sets)
-     int n_blocks, n_sets;
+alloc_cprop_mem (int n_blocks, int n_sets)
 {
   cprop_pavloc = sbitmap_vector_alloc (n_blocks, n_sets);
   cprop_absaltered = sbitmap_vector_alloc (n_blocks, n_sets);
@@ -3719,7 +3602,7 @@ alloc_cprop_mem (n_blocks, n_sets)
 /* Free vars used by copy/const propagation.  */
 
 static void
-free_cprop_mem ()
+free_cprop_mem (void)
 {
   sbitmap_vector_free (cprop_pavloc);
   sbitmap_vector_free (cprop_absaltered);
@@ -3734,11 +3617,7 @@ free_cprop_mem ()
    bit in BMAP.  */
 
 static void
-compute_transp (x, indx, bmap, set_p)
-     rtx x;
-     int indx;
-     sbitmap *bmap;
-     int set_p;
+compute_transp (rtx x, int indx, sbitmap *bmap, int set_p)
 {
   int i, j;
   basic_block bb;
@@ -3869,7 +3748,7 @@ compute_transp (x, indx, bmap, set_p)
    propagation.  */
 
 static void
-compute_cprop_data ()
+compute_cprop_data (void)
 {
   compute_local_properties (cprop_absaltered, cprop_pavloc, NULL, &set_hash_table);
   compute_available (cprop_pavloc, cprop_absaltered,
@@ -3896,9 +3775,7 @@ static int reg_use_count;
    This doesn't hurt anything but it will slow things down.  */
 
 static void
-find_used_regs (xptr, data)
-     rtx *xptr;
-     void *data ATTRIBUTE_UNUSED;
+find_used_regs (rtx *xptr, void *data ATTRIBUTE_UNUSED)
 {
   int i, j;
   enum rtx_code code;
@@ -3948,8 +3825,7 @@ find_used_regs (xptr, data)
    Returns nonzero is successful.  */
 
 static int
-try_replace_reg (from, to, insn)
-     rtx from, to, insn;
+try_replace_reg (rtx from, rtx to, rtx insn)
 {
   rtx note = find_reg_equal_equiv_note (insn);
   rtx src = 0;
@@ -4005,9 +3881,7 @@ try_replace_reg (from, to, insn)
    NULL no such set is found.  */
 
 static struct expr *
-find_avail_set (regno, insn)
-     int regno;
-     rtx insn;
+find_avail_set (int regno, rtx insn)
 {
   /* SET1 contains the last set found that can be returned to the caller for
      use in a substitution.  */
@@ -4079,12 +3953,7 @@ find_avail_set (regno, insn)
    if a change was made.  */
 
 static int
-cprop_jump (bb, setcc, jump, from, src)
-     basic_block bb;
-     rtx setcc;
-     rtx jump;
-     rtx from;
-     rtx src;
+cprop_jump (basic_block bb, rtx setcc, rtx jump, rtx from, rtx src)
 {
   rtx new, set_src, note_src;
   rtx set = pc_set (jump);
@@ -4183,11 +4052,7 @@ cprop_jump (bb, setcc, jump, from, src)
 }
 
 static bool
-constprop_register (insn, from, to, alter_jumps)
-     rtx insn;
-     rtx from;
-     rtx to;
-     int alter_jumps;
+constprop_register (rtx insn, rtx from, rtx to, int alter_jumps)
 {
   rtx sset;
 
@@ -4224,9 +4089,7 @@ constprop_register (insn, from, to, alter_jumps)
    The result is nonzero if a change was made.  */
 
 static int
-cprop_insn (insn, alter_jumps)
-     rtx insn;
-     int alter_jumps;
+cprop_insn (rtx insn, int alter_jumps)
 {
   struct reg_use *reg_used;
   int changed = 0;
@@ -4325,9 +4188,7 @@ cprop_insn (insn, alter_jumps)
    can legitimately make replacements.  */
 
 static void
-local_cprop_find_used_regs (xptr, data)
-     rtx *xptr;
-     void *data;
+local_cprop_find_used_regs (rtx *xptr, void *data)
 {
   rtx x = *xptr;
 
@@ -4365,16 +4226,12 @@ local_cprop_find_used_regs (xptr, data)
 
   find_used_regs (xptr, data);
 }
-  
+
 /* LIBCALL_SP is a zero-terminated array of insns at the end of a libcall;
    their REG_EQUAL notes need updating.  */
 
 static bool
-do_local_cprop (x, insn, alter_jumps, libcall_sp)
-     rtx x;
-     rtx insn;
-     int alter_jumps;
-     rtx *libcall_sp;
+do_local_cprop (rtx x, rtx insn, int alter_jumps, rtx *libcall_sp)
 {
   rtx newreg = NULL, newcnst = NULL;
 
@@ -4453,8 +4310,7 @@ do_local_cprop (x, insn, alter_jumps, libcall_sp)
    replaced with NEWVAL in INSN.  Return true if all substitutions could
    be made.  */
 static bool
-adjust_libcall_notes (oldreg, newval, insn, libcall_sp)
-     rtx oldreg, newval, insn, *libcall_sp;
+adjust_libcall_notes (rtx oldreg, rtx newval, rtx insn, rtx *libcall_sp)
 {
   rtx end;
 
@@ -4490,8 +4346,7 @@ adjust_libcall_notes (oldreg, newval, insn, libcall_sp)
 #define MAX_NESTED_LIBCALLS 9
 
 static void
-local_cprop_pass (alter_jumps)
-     int alter_jumps;
+local_cprop_pass (int alter_jumps)
 {
   rtx insn;
   struct reg_use *reg_used;
@@ -4554,8 +4409,7 @@ local_cprop_pass (alter_jumps)
    nonzero if a change was made.  */
 
 static int
-cprop (alter_jumps)
-     int alter_jumps;
+cprop (int alter_jumps)
 {
   int changed;
   basic_block bb;
@@ -4608,8 +4462,7 @@ cprop (alter_jumps)
    but this would require some code reorganization.  */
 
 rtx
-fis_get_condition (jump)
-     rtx jump;
+fis_get_condition (rtx jump)
 {
   rtx cond, set, tmp, insn, earliest;
   bool reverse;
@@ -4665,7 +4518,7 @@ fis_get_condition (jump)
    basic block.  */
 
 static void
-find_implicit_sets ()
+find_implicit_sets (void)
 {
   basic_block bb, dest;
   unsigned int count;
@@ -4714,10 +4567,7 @@ find_implicit_sets ()
    perform conditional jump bypassing optimizations.  */
 
 static int
-one_cprop_pass (pass, cprop_jumps, bypass_jumps)
-     int pass;
-     int cprop_jumps;
-     int bypass_jumps;
+one_cprop_pass (int pass, int cprop_jumps, int bypass_jumps)
 {
   int changed = 0;
 
@@ -4779,9 +4629,7 @@ static int bypass_last_basic_block;
    find_avail_set.  */
 
 static struct expr *
-find_bypass_set (regno, bb)
-     int regno;
-     int bb;
+find_bypass_set (int regno, int bb)
 {
   struct expr *result = 0;
 
@@ -4823,9 +4671,7 @@ find_bypass_set (regno, bb)
    valid prior to commit_edge_insertions.  */
 
 static bool
-reg_killed_on_edge (reg, e)
-     rtx reg;
-     edge e;
+reg_killed_on_edge (rtx reg, edge e)
 {
   rtx insn;
 
@@ -4847,9 +4693,7 @@ reg_killed_on_edge (reg, e)
    these inserted insns when performing its transformations.  */
 
 static int
-bypass_block (bb, setcc, jump)
-     basic_block bb;
-     rtx setcc, jump;
+bypass_block (basic_block bb, rtx setcc, rtx jump)
 {
   rtx insn, note;
   edge e, enext, edest;
@@ -4921,7 +4765,7 @@ bypass_block (bb, setcc, jump)
          new = simplify_replace_rtx (src, reg_used->reg_rtx,
                                      SET_SRC (set->expr));
 
-         /* Jump bypassing may have already placed instructions on 
+         /* Jump bypassing may have already placed instructions on
             edges of the CFG.  We can't bypass an outgoing edge that
             has instructions associated with it, as these insns won't
             get executed if the incoming edge is redirected.  */
@@ -4985,7 +4829,7 @@ bypass_block (bb, setcc, jump)
    This function is now mis-named, because we also handle indirect jumps.  */
 
 static int
-bypass_conditional_jumps ()
+bypass_conditional_jumps (void)
 {
   basic_block bb;
   int changed;
@@ -5083,8 +4927,7 @@ static sbitmap pre_redundant_insns;
 /* Allocate vars used for PRE analysis.  */
 
 static void
-alloc_pre_mem (n_blocks, n_exprs)
-     int n_blocks, n_exprs;
+alloc_pre_mem (int n_blocks, int n_exprs)
 {
   transp = sbitmap_vector_alloc (n_blocks, n_exprs);
   comp = sbitmap_vector_alloc (n_blocks, n_exprs);
@@ -5104,7 +4947,7 @@ alloc_pre_mem (n_blocks, n_exprs)
 /* Free vars used for PRE analysis.  */
 
 static void
-free_pre_mem ()
+free_pre_mem (void)
 {
   sbitmap_vector_free (transp);
   sbitmap_vector_free (comp);
@@ -5132,7 +4975,7 @@ free_pre_mem ()
 /* Top level routine to do the dataflow analysis needed by PRE.  */
 
 static void
-compute_pre_data ()
+compute_pre_data (void)
 {
   sbitmap trapping_expr;
   basic_block bb;
@@ -5203,11 +5046,7 @@ compute_pre_data ()
    the closest such expression.  */
 
 static int
-pre_expr_reaches_here_p_work (occr_bb, expr, bb, visited)
-     basic_block occr_bb;
-     struct expr *expr;
-     basic_block bb;
-     char *visited;
+pre_expr_reaches_here_p_work (basic_block occr_bb, struct expr *expr, basic_block bb, char *visited)
 {
   edge pred;
 
@@ -5252,10 +5091,7 @@ pre_expr_reaches_here_p_work (occr_bb, expr, bb, visited)
    memory allocated for that function is returned.  */
 
 static int
-pre_expr_reaches_here_p (occr_bb, expr, bb)
-     basic_block occr_bb;
-     struct expr *expr;
-     basic_block bb;
+pre_expr_reaches_here_p (basic_block occr_bb, struct expr *expr, basic_block bb)
 {
   int rval;
   char *visited = (char *) xcalloc (last_basic_block, 1);
@@ -5272,8 +5108,7 @@ pre_expr_reaches_here_p (occr_bb, expr, bb)
    the value of BB.  */
 
 static rtx
-process_insert_insn (expr)
-     struct expr *expr;
+process_insert_insn (struct expr *expr)
 {
   rtx reg = expr->reaching_reg;
   rtx exp = copy_rtx (expr->expr);
@@ -5307,10 +5142,7 @@ process_insert_insn (expr)
    no sense for code hoisting.  */
 
 static void
-insert_insn_end_bb (expr, bb, pre)
-     struct expr *expr;
-     basic_block bb;
-     int pre;
+insert_insn_end_bb (struct expr *expr, basic_block bb, int pre)
 {
   rtx insn = bb->end;
   rtx new_insn;
@@ -5327,7 +5159,7 @@ insert_insn_end_bb (expr, bb, pre)
     pat_end = NEXT_INSN (pat_end);
 
   /* If the last insn is a jump, insert EXPR in front [taking care to
-     handle cc0, etc. properly].  Similary we need to care trapping
+     handle cc0, etc. properly].  Similarly we need to care trapping
      instructions in presence of non-call exceptions.  */
 
   if (GET_CODE (insn) == JUMP_INSN
@@ -5439,9 +5271,7 @@ insert_insn_end_bb (expr, bb, pre)
    the expressions fully redundant.  */
 
 static int
-pre_edge_insert (edge_list, index_map)
-     struct edge_list *edge_list;
-     struct expr **index_map;
+pre_edge_insert (struct edge_list *edge_list, struct expr **index_map)
 {
   int e, i, j, num_edges, set_size, did_insert = 0;
   sbitmap *inserted;
@@ -5523,9 +5353,7 @@ pre_edge_insert (edge_list, index_map)
 /* Copy the result of INSN to REG.  INDX is the expression number.  */
 
 static void
-pre_insert_copy_insn (expr, insn)
-     struct expr *expr;
-     rtx insn;
+pre_insert_copy_insn (struct expr *expr, rtx insn)
 {
   rtx reg = expr->reaching_reg;
   int regno = REGNO (reg);
@@ -5555,7 +5383,7 @@ pre_insert_copy_insn (expr, insn)
    to `reaching_reg'.  */
 
 static void
-pre_insert_copies ()
+pre_insert_copies (void)
 {
   unsigned int i;
   struct expr *expr;
@@ -5613,8 +5441,7 @@ pre_insert_copies ()
 /* Emit move from SRC to DEST noting the equivalence with expression computed
    in INSN.  */
 static rtx
-gcse_emit_move_after (src, dest, insn)
-     rtx src, dest, insn;
+gcse_emit_move_after (rtx src, rtx dest, rtx insn)
 {
   rtx new;
   rtx set = single_set (insn), set2;
@@ -5648,7 +5475,7 @@ gcse_emit_move_after (src, dest, insn)
    Returns nonzero if a change is made.  */
 
 static int
-pre_delete ()
+pre_delete (void)
 {
   unsigned int i;
   int changed;
@@ -5726,7 +5553,7 @@ pre_delete ()
    redundancies.  */
 
 static int
-pre_gcse ()
+pre_gcse (void)
 {
   unsigned int i;
   int did_insert, changed;
@@ -5773,8 +5600,7 @@ pre_gcse ()
    Return nonzero if a change was made.  */
 
 static int
-one_pre_gcse_pass (pass)
-     int pass;
+one_pre_gcse_pass (int pass)
 {
   int changed = 0;
 
@@ -5828,9 +5654,7 @@ one_pre_gcse_pass (pass)
    necessary REG_LABEL notes.  */
 
 static void
-add_label_notes (x, insn)
-     rtx x;
-     rtx insn;
+add_label_notes (rtx x, rtx insn)
 {
   enum rtx_code code = GET_CODE (x);
   int i, j;
@@ -5875,7 +5699,7 @@ add_label_notes (x, insn)
    EH table sizes, this may not be worthwhile.  */
 
 static void
-compute_transpout ()
+compute_transpout (void)
 {
   basic_block bb;
   unsigned int i;
@@ -5916,10 +5740,7 @@ compute_transpout ()
    We ignore hard registers.  */
 
 static void
-invalidate_nonnull_info (x, setter, data)
-     rtx x;
-     rtx setter ATTRIBUTE_UNUSED;
-     void *data;
+invalidate_nonnull_info (rtx x, rtx setter ATTRIBUTE_UNUSED, void *data)
 {
   unsigned int regno;
   struct null_pointer_info *npi = (struct null_pointer_info *) data;
@@ -5944,12 +5765,9 @@ invalidate_nonnull_info (x, setter, data)
    they are not our responsibility to free.  */
 
 static int
-delete_null_pointer_checks_1 (block_reg, nonnull_avin,
-                             nonnull_avout, npi)
-     unsigned int *block_reg;
-     sbitmap *nonnull_avin;
-     sbitmap *nonnull_avout;
-     struct null_pointer_info *npi;
+delete_null_pointer_checks_1 (unsigned int *block_reg, sbitmap *nonnull_avin,
+                             sbitmap *nonnull_avout,
+                             struct null_pointer_info *npi)
 {
   basic_block bb, current_block;
   sbitmap *nonnull_local = npi->nonnull_local;
@@ -6116,8 +5934,7 @@ delete_null_pointer_checks_1 (block_reg, nonnull_avin,
    This could probably be integrated with global cprop with a little work.  */
 
 int
-delete_null_pointer_checks (f)
-     rtx f ATTRIBUTE_UNUSED;
+delete_null_pointer_checks (rtx f ATTRIBUTE_UNUSED)
 {
   sbitmap *nonnull_avin, *nonnull_avout;
   unsigned int *block_reg;
@@ -6234,8 +6051,7 @@ dominance_info dominators;
 /* Allocate vars used for code hoisting analysis.  */
 
 static void
-alloc_code_hoist_mem (n_blocks, n_exprs)
-     int n_blocks, n_exprs;
+alloc_code_hoist_mem (int n_blocks, int n_exprs)
 {
   antloc = sbitmap_vector_alloc (n_blocks, n_exprs);
   transp = sbitmap_vector_alloc (n_blocks, n_exprs);
@@ -6250,7 +6066,7 @@ alloc_code_hoist_mem (n_blocks, n_exprs)
 /* Free vars used for code hoisting analysis.  */
 
 static void
-free_code_hoist_mem ()
+free_code_hoist_mem (void)
 {
   sbitmap_vector_free (antloc);
   sbitmap_vector_free (transp);
@@ -6270,7 +6086,7 @@ free_code_hoist_mem ()
    compute the expression.  */
 
 static void
-compute_code_hoist_vbeinout ()
+compute_code_hoist_vbeinout (void)
 {
   int changed, passes;
   basic_block bb;
@@ -6305,7 +6121,7 @@ compute_code_hoist_vbeinout ()
 /* Top level routine to do the dataflow analysis needed by code hoisting.  */
 
 static void
-compute_code_hoist_data ()
+compute_code_hoist_data (void)
 {
   compute_local_properties (transp, comp, antloc, &expr_hash_table);
   compute_transpout ();
@@ -6329,11 +6145,7 @@ compute_code_hoist_data ()
    paths.  */
 
 static int
-hoist_expr_reaches_here_p (expr_bb, expr_index, bb, visited)
-     basic_block expr_bb;
-     int expr_index;
-     basic_block bb;
-     char *visited;
+hoist_expr_reaches_here_p (basic_block expr_bb, int expr_index, basic_block bb, char *visited)
 {
   edge pred;
   int visited_allocated_locally = 0;
@@ -6380,7 +6192,7 @@ hoist_expr_reaches_here_p (expr_bb, expr_index, bb, visited)
 /* Actually perform code hoisting.  */
 
 static void
-hoist_code ()
+hoist_code (void)
 {
   basic_block bb, dominated;
   basic_block *domby;
@@ -6460,7 +6272,7 @@ hoist_code ()
       /* If we found nothing to hoist, then quit now.  */
       if (! found)
         {
-         free (domby);
+         free (domby);
        continue;
        }
 
@@ -6546,7 +6358,7 @@ hoist_code ()
    Return nonzero if a change was made.  */
 
 static int
-one_code_hoisting_pass ()
+one_code_hoisting_pass (void)
 {
   int changed = 0;
 
@@ -6597,8 +6409,7 @@ one_code_hoisting_pass ()
    doesn't find one, we create one and initialize it.  */
 
 static struct ls_expr *
-ldst_entry (x)
-     rtx x;
+ldst_entry (rtx x)
 {
   struct ls_expr * ptr;
 
@@ -6629,8 +6440,7 @@ ldst_entry (x)
 /* Free up an individual ldst entry.  */
 
 static void
-free_ldst_entry (ptr)
-     struct ls_expr * ptr;
+free_ldst_entry (struct ls_expr * ptr)
 {
   free_INSN_LIST_list (& ptr->loads);
   free_INSN_LIST_list (& ptr->stores);
@@ -6641,7 +6451,7 @@ free_ldst_entry (ptr)
 /* Free up all memory associated with the ldst list.  */
 
 static void
-free_ldst_mems ()
+free_ldst_mems (void)
 {
   while (pre_ldst_mems)
     {
@@ -6658,8 +6468,7 @@ free_ldst_mems ()
 /* Dump debugging info about the ldst list.  */
 
 static void
-print_ldst_list (file)
-     FILE * file;
+print_ldst_list (FILE * file)
 {
   struct ls_expr * ptr;
 
@@ -6694,8 +6503,7 @@ print_ldst_list (file)
 /* Returns 1 if X is in the list of ldst only expressions.  */
 
 static struct ls_expr *
-find_rtx_in_ldst (x)
-     rtx x;
+find_rtx_in_ldst (rtx x)
 {
   struct ls_expr * ptr;
 
@@ -6709,7 +6517,7 @@ find_rtx_in_ldst (x)
 /* Assign each element of the list of mems a monotonically increasing value.  */
 
 static int
-enumerate_ldsts ()
+enumerate_ldsts (void)
 {
   struct ls_expr * ptr;
   int n = 0;
@@ -6723,7 +6531,7 @@ enumerate_ldsts ()
 /* Return first item in the list.  */
 
 static inline struct ls_expr *
-first_ls_expr ()
+first_ls_expr (void)
 {
   return pre_ldst_mems;
 }
@@ -6731,8 +6539,7 @@ first_ls_expr ()
 /* Return the next item in the list after the specified one.  */
 
 static inline struct ls_expr *
-next_ls_expr (ptr)
-     struct ls_expr * ptr;
+next_ls_expr (struct ls_expr * ptr)
 {
   return ptr->next;
 }
@@ -6744,8 +6551,7 @@ next_ls_expr (ptr)
    ld_motion list, otherwise we let the usual aliasing take care of it.  */
 
 static int
-simple_mem (x)
-     rtx x;
+simple_mem (rtx x)
 {
   if (GET_CODE (x) != MEM)
     return 0;
@@ -6784,8 +6590,7 @@ simple_mem (x)
    fix it up.  */
 
 static void
-invalidate_any_buried_refs (x)
-     rtx x;
+invalidate_any_buried_refs (rtx x)
 {
   const char * fmt;
   int i, j;
@@ -6820,7 +6625,7 @@ invalidate_any_buried_refs (x)
    later.  */
 
 static void
-compute_ld_motion_mems ()
+compute_ld_motion_mems (void)
 {
   struct ls_expr * ptr;
   basic_block bb;
@@ -6885,7 +6690,7 @@ compute_ld_motion_mems ()
    expression list for pre gcse.  */
 
 static void
-trim_ld_motion_mems ()
+trim_ld_motion_mems (void)
 {
   struct ls_expr * last = NULL;
   struct ls_expr * ptr = first_ls_expr ();
@@ -6952,8 +6757,7 @@ trim_ld_motion_mems ()
    correct value in the reaching register for the loads.  */
 
 static void
-update_ld_motion_stores (expr)
-     struct expr * expr;
+update_ld_motion_stores (struct expr * expr)
 {
   struct ls_expr * mem_ptr;
 
@@ -7024,9 +6828,8 @@ static int num_stores;
 /* Checks to set if we need to mark a register set. Called from note_stores.  */
 
 static void
-reg_set_info (dest, setter, data)
-     rtx dest, setter ATTRIBUTE_UNUSED;
-     void * data ATTRIBUTE_UNUSED;
+reg_set_info (rtx dest, rtx setter ATTRIBUTE_UNUSED,
+             void *data ATTRIBUTE_UNUSED)
 {
   if (GET_CODE (dest) == SUBREG)
     dest = SUBREG_REG (dest);
@@ -7037,11 +6840,9 @@ reg_set_info (dest, setter, data)
 
 /* Return zero if some of the registers in list X are killed
    due to set of registers in bitmap REGS_SET.  */
-  
+
 static bool
-store_ops_ok (x, regs_set)
-     rtx x;
-     int *regs_set;
+store_ops_ok (rtx x, int *regs_set)
 {
   rtx reg;
 
@@ -7049,7 +6850,7 @@ store_ops_ok (x, regs_set)
     {
       reg = XEXP (x, 0);
       if (regs_set[REGNO(reg)])
-       return false; 
+       return false;
     }
 
   return true;
@@ -7057,8 +6858,7 @@ store_ops_ok (x, regs_set)
 
 /* Returns a list of registers mentioned in X.  */
 static rtx
-extract_mentioned_regs (x)
-     rtx x;
+extract_mentioned_regs (rtx x)
 {
   return extract_mentioned_regs_helper (x, NULL_RTX);
 }
@@ -7066,9 +6866,7 @@ extract_mentioned_regs (x)
 /* Helper for extract_mentioned_regs; ACCUM is used to accumulate used
    registers.  */
 static rtx
-extract_mentioned_regs_helper (x, accum)
-     rtx x;
-     rtx accum;
+extract_mentioned_regs_helper (rtx x, rtx accum)
 {
   int i;
   enum rtx_code code;
@@ -7149,7 +6947,7 @@ extract_mentioned_regs_helper (x, accum)
    current insn, REGS_SET_AFTER is bitmap of registers set after (and
    including) the insn in this basic block.  We must be passing through BB from
    head to end, as we are using this fact to speed things up.
-   
+
    The results are stored this way:
 
    -- the first anticipatable expression is added into ANTIC_STORE_LIST
@@ -7167,10 +6965,7 @@ extract_mentioned_regs_helper (x, accum)
    */
 
 static void
-find_moveable_store (insn, regs_set_before, regs_set_after)
-     rtx insn;
-     int *regs_set_before;
-     int *regs_set_after;
+find_moveable_store (rtx insn, int *regs_set_before, int *regs_set_after)
 {
   struct ls_expr * ptr;
   rtx dest, set, tmp;
@@ -7195,7 +6990,7 @@ find_moveable_store (insn, regs_set_before, regs_set_after)
      continue.  */
   if (flag_non_call_exceptions && may_trap_p (dest))
     return;
-    
+
   ptr = ldst_entry (dest);
   if (!ptr->pattern_regs)
     ptr->pattern_regs = extract_mentioned_regs (dest);
@@ -7255,11 +7050,11 @@ find_moveable_store (insn, regs_set_before, regs_set_after)
   if (!check_available)
     AVAIL_STORE_LIST (ptr) = alloc_INSN_LIST (insn, AVAIL_STORE_LIST (ptr));
 }
-  
+
 /* Find available and anticipatable stores.  */
 
 static int
-compute_store_table ()
+compute_store_table (void)
 {
   int ret;
   basic_block bb;
@@ -7394,8 +7189,7 @@ compute_store_table ()
 /* Check to see if the load X is aliased with STORE_PATTERN.  */
 
 static bool
-load_kills_store (x, store_pattern)
-     rtx x, store_pattern;
+load_kills_store (rtx x, rtx store_pattern)
 {
   if (true_dependence (x, GET_MODE (x), store_pattern, rtx_addr_varies_p))
     return true;
@@ -7406,8 +7200,7 @@ load_kills_store (x, store_pattern)
    STORE_PATTERN.  Return true if found.  */
 
 static bool
-find_loads (x, store_pattern)
-     rtx x, store_pattern;
+find_loads (rtx x, rtx store_pattern)
 {
   const char * fmt;
   int i, j;
@@ -7443,8 +7236,7 @@ find_loads (x, store_pattern)
    Return true if it it does.  */
 
 static bool
-store_killed_in_insn (x, x_regs, insn)
-     rtx x, x_regs, insn;
+store_killed_in_insn (rtx x, rtx x_regs, rtx insn)
 {
   rtx reg, base;
 
@@ -7493,16 +7285,13 @@ store_killed_in_insn (x, x_regs, insn)
    is killed, return the last insn in that it occurs in FAIL_INSN.  */
 
 static bool
-store_killed_after (x, x_regs, insn, bb, regs_set_after, fail_insn)
-     rtx x, x_regs, insn;
-     basic_block bb;
-     int *regs_set_after;
-     rtx *fail_insn;
+store_killed_after (rtx x, rtx x_regs, rtx insn, basic_block bb,
+                   int *regs_set_after, rtx *fail_insn)
 {
   rtx last = bb->end, act;
 
   if (!store_ops_ok (x_regs, regs_set_after))
-    { 
+    {
       /* We do not know where it will happen.  */
       if (fail_insn)
        *fail_insn = NULL_RTX;
@@ -7520,15 +7309,13 @@ store_killed_after (x, x_regs, insn, bb, regs_set_after, fail_insn)
 
   return false;
 }
-  
+
 /* Returns true if the expression X is loaded or clobbered on or before INSN
    within basic block BB. X_REGS is list of registers mentioned in X.
    REGS_SET_BEFORE is bitmap of registers set before or in this insn.  */
 static bool
-store_killed_before (x, x_regs, insn, bb, regs_set_before)
-     rtx x, x_regs, insn;
-     basic_block bb;
-     int *regs_set_before;
+store_killed_before (rtx x, rtx x_regs, rtx insn, basic_block bb,
+                    int *regs_set_before)
 {
   rtx first = bb->head;
 
@@ -7541,11 +7328,11 @@ store_killed_before (x, x_regs, insn, bb, regs_set_before)
 
   return false;
 }
-  
+
 /* Fill in available, anticipatable, transparent and kill vectors in
    STORE_DATA, based on lists of available and anticipatable stores.  */
 static void
-build_store_vectors ()
+build_store_vectors (void)
 {
   basic_block bb;
   int *regs_set_in_block;
@@ -7613,10 +7400,10 @@ build_store_vectors ()
              if (!TEST_BIT (st_antloc[bb->index], ptr->index)
                  || !TEST_BIT (ae_gen[bb->index], ptr->index))
                SET_BIT (ae_kill[bb->index], ptr->index);
-           }
-         else
-           SET_BIT (transp[bb->index], ptr->index);
-               }
+           }
+         else
+           SET_BIT (transp[bb->index], ptr->index);
+       }
     }
 
   free (regs_set_in_block);
@@ -7634,9 +7421,7 @@ build_store_vectors ()
    the BLOCK_HEAD if needed.  */
 
 static void
-insert_insn_start_bb (insn, bb)
-     rtx insn;
-     basic_block bb;
+insert_insn_start_bb (rtx insn, basic_block bb)
 {
   /* Insert at start of successor block.  */
   rtx prev = PREV_INSN (bb->head);
@@ -7669,9 +7454,7 @@ insert_insn_start_bb (insn, bb)
    if an edge insertion was performed.  */
 
 static int
-insert_store (expr, e)
-     struct ls_expr * expr;
-     edge e;
+insert_store (struct ls_expr * expr, edge e)
 {
   rtx reg, insn;
   basic_block bb;
@@ -7735,9 +7518,7 @@ insert_store (expr, e)
 /* This routine will replace a store with a SET to a specified register.  */
 
 static void
-replace_store_insn (reg, del, bb)
-     rtx reg, del;
-     basic_block bb;
+replace_store_insn (rtx reg, rtx del, basic_block bb)
 {
   rtx insn;
 
@@ -7762,9 +7543,7 @@ replace_store_insn (reg, del, bb)
    the reaching_reg for later storing.  */
 
 static void
-delete_store (expr, bb)
-     struct ls_expr * expr;
-     basic_block bb;
+delete_store (struct ls_expr * expr, basic_block bb)
 {
   rtx reg, i, del;
 
@@ -7789,7 +7568,7 @@ delete_store (expr, bb)
 /* Free memory used by store motion.  */
 
 static void
-free_store_memory ()
+free_store_memory (void)
 {
   free_ldst_mems ();
 
@@ -7816,7 +7595,7 @@ free_store_memory ()
    other way by looking at the flowgraph in reverse.  */
 
 static void
-store_motion ()
+store_motion (void)
 {
   basic_block bb;
   int x;
@@ -7873,8 +7652,7 @@ store_motion ()
 /* Entry point for jump bypassing optimization pass.  */
 
 int
-bypass_jumps (file)
-     FILE *file;
+bypass_jumps (FILE *file)
 {
   int changed;