loop.c (regs_patch_p): Add prototype.
authorJeff Law <law@gcc.gnu.org>
Thu, 16 Apr 1998 23:56:12 +0000 (17:56 -0600)
committerJeff Law <law@gcc.gnu.org>
Thu, 16 Apr 1998 23:56:12 +0000 (17:56 -0600)
        * loop.c (regs_patch_p): Add prototype.
        (add_label_notes, count_nonfixed_reads): Likewise.
        (find_single_use_in_loop): Likewise.
        (express_from): Surround prototype with #ifdef.
        (giv_sort): Similarly.
        * jump.c (mark_modified_reg): Add prototype.
        * haifa-sched.c (is_prisky): Add prototype.
        (queue_to_ready): Likewise.
        * genextract.c (gen_insn): Add prototype.
        * genemit.c (max_operand_1): Add prototype.
        (max_operand_vec, print_code, gen_exp, gen_insn): Likewise.
        (gen_expand, gen_explit, output_add_clobbers): Likewise.
        (output_init_mov_optab): Likewise.
        * genattrtab.c (attr_hash_add_rtx): Add prototype.
        (attr_hash_add_string, write_length_unit_log): Likewise.
        * genattr.c (init_range): Add prototype.
        * combine.c (sets_function_arg_p): Add prototype.

From-SVN: r19251

gcc/combine.c
gcc/expr.c
gcc/genattr.c
gcc/genattrtab.c
gcc/genemit.c
gcc/genextract.c
gcc/haifa-sched.c
gcc/jump.c
gcc/loop.c

index 66de17e66889094f0b7230d0d680c43002082148..ef8ed46333d7545ea78807321823acd6521492ad 100644 (file)
@@ -399,6 +399,7 @@ static void init_reg_last_arrays    PROTO((void));
 static void setup_incoming_promotions   PROTO((void));
 static void set_nonzero_bits_and_sign_copies  PROTO((rtx, rtx));
 static int can_combine_p       PROTO((rtx, rtx, rtx, rtx, rtx *, rtx *));
+static int sets_function_arg_p PROTO((rtx));
 static int combinable_i3pat    PROTO((rtx, rtx *, rtx, rtx, int, rtx *));
 static rtx try_combine         PROTO((rtx, rtx, rtx));
 static void undo_all           PROTO((void));
index d42f6345d0c6afa5b7341c9681fdaf2f3522f11c..f2b97d3bf7ab85035f6123a15c481b62fd33a5a8 100644 (file)
@@ -169,7 +169,8 @@ static void store_constructor_field PROTO((rtx, int, int, enum machine_mode,
 static void store_constructor  PROTO((tree, rtx, int));
 static rtx store_field         PROTO((rtx, int, int, enum machine_mode, tree,
                                       enum machine_mode, int, int, int));
-static enum memory_use_mode    PROTO((enum expand_modifier));
+static enum memory_use_mode
+  get_memory_usage_from_modifier PROTO((enum expand_modifier));
 static tree save_noncopied_parts PROTO((tree, tree));
 static tree init_noncopied_parts PROTO((tree, tree));
 static int safe_from_p         PROTO((rtx, tree, int));
index 7f900be699415e2e742560e106b37a68e3da6c2a..58e99307b6caf1a1ee7ef086e3b0de80f1fc08bc 100644 (file)
@@ -61,6 +61,7 @@ struct function_unit
 };
 
 static void extend_range PROTO((struct range *, int, int));
+static void init_range PROTO((struct range *));
 static void write_upcase PROTO((char *));
 static void gen_attr PROTO((rtx));
 static void write_units PROTO((int, struct range *, struct range *,
index 374f50f390d724ca2de25a378ca78ec41fb2dd06..2c2c9dd48ac83e3faed323f6640ff3ba1b92656a 100644 (file)
@@ -363,6 +363,8 @@ int optimize = 0;
 struct _global_rtl global_rtl;
 rtx pic_offset_table_rtx;
 
+static void attr_hash_add_rtx  PROTO((int, rtx));
+static void attr_hash_add_string PROTO((int, char *));
 static rtx attr_rtx            PVPROTO((enum rtx_code, ...));
 #ifdef HAVE_VPRINTF
 static char *attr_printf       PVPROTO((int, char *, ...));
@@ -396,6 +398,7 @@ static rtx identity_fn              PROTO((rtx));
 static rtx zero_fn             PROTO((rtx));
 static rtx one_fn              PROTO((rtx));
 static rtx max_fn              PROTO((rtx));
+static void write_length_unit_log PROTO ((void));
 static rtx simplify_cond       PROTO((rtx, int, int));
 #if 0
 static rtx simplify_by_alternatives PROTO((rtx, int, int));
index d239ba65febbad9d8519f3524c50a9ec2f317798..209fe096e0c0267cce55de4e8f7a90287ba44e55 100644 (file)
@@ -63,6 +63,17 @@ struct clobber_ent
   struct clobber_ent *next;
 };
 
+static void max_operand_1              PROTO((rtx));
+static int max_operand_vec             PROTO((rtx, int));
+static void print_code                 PROTO((RTX_CODE));
+static void gen_exp                    PROTO((rtx));
+static void gen_insn                   PROTO((rtx));
+static void gen_expand                 PROTO((rtx));
+static void gen_split                  PROTO((rtx));
+static void output_add_clobbers                PROTO((void));
+static void output_init_mov_optab      PROTO((void));
+
+\f
 static void
 max_operand_1 (x)
      rtx x;
index 22722b5c81d5a19a26998a0d0d8e468927d2e8ae..574a8f38b9c92536c096b3694cbcf75d466ef1b6 100644 (file)
@@ -95,6 +95,7 @@ static int dupnums[MAX_DUP_OPERANDS];
 
 static struct code_ptr *peepholes;
 
+static void gen_insn PROTO ((rtx));
 static void walk_rtx PROTO ((rtx, char *));
 static void print_path PROTO ((char *));
 char *xmalloc PROTO ((unsigned));
index ba48a29e19a934d23dd8ed78768fa47c87708ba8..5ca158728ea26abd73448696f99095f0353e0d18 100644 (file)
@@ -518,7 +518,6 @@ extern rtx forced_labels;
 
 
 static int is_cfg_nonregular PROTO ((void));
-void debug_control_flow PROTO ((void));
 static int build_control_flow PROTO ((int_list_ptr *, int_list_ptr *,
                                      int *, int *));
 static void new_edge PROTO ((int, int));
@@ -715,6 +714,7 @@ static int find_conditional_protection PROTO ((rtx, int));
 static int is_conditionally_protected PROTO ((rtx, int, int));
 static int may_trap_exp PROTO ((rtx, int));
 static int haifa_classify_insn PROTO ((rtx));
+static int is_prisky PROTO ((rtx, int, int));
 static int is_exception_free PROTO ((rtx, int, int));
 
 static char find_insn_mem_list PROTO ((rtx, rtx, rtx, rtx));
@@ -761,6 +761,7 @@ static void get_block_head_tail PROTO ((int, rtx *, rtx *));
 static void find_pre_sched_live PROTO ((int));
 static void find_post_sched_live PROTO ((int));
 static void update_reg_usage PROTO ((void));
+static int queue_to_ready ((rtx [], int))
 
 void debug_ready_list PROTO ((rtx[], int));
 static void init_target_units PROTO (());
index ef80eb61556cd01cc31f7e40a020ebfe17560a9f..49c07fcb39edd423c6f1f6dd61e3c93b5d089724 100644 (file)
@@ -116,6 +116,7 @@ static void mark_jump_label         PROTO((rtx, rtx, int));
 static void delete_computation         PROTO((rtx));
 static void delete_from_jump_chain     PROTO((rtx));
 static int delete_labelref_insn                PROTO((rtx, rtx, int));
+static void mark_modified_reg          PROTO((rtx, rtx));
 static void redirect_tablejump         PROTO((rtx, rtx));
 static rtx find_insert_position         PROTO((rtx, rtx));
 \f
index 4d2a6627dd83458c15c34db36132f9e595ccca2e..93269794200af70d8e654147d0b54b627fd2ced8 100644 (file)
@@ -296,9 +296,13 @@ static int libcall_benefit PROTO((rtx));
 static void ignore_some_movables PROTO((struct movable *));
 static void force_movables PROTO((struct movable *));
 static void combine_movables PROTO((struct movable *, int));
+static int regs_patch_p PROTO((rtx, rtx, struct movable *));
 static int rtx_equal_for_loop_p PROTO((rtx, rtx, struct movable *));
+static void add_label_notes PROTO((rtx, rtx));
 static void move_movables PROTO((struct movable *, int, int, rtx, rtx, int));
+static int count_nonfixed_reads PROTO((rtx));
 static void strength_reduce PROTO((rtx, rtx, rtx, int, rtx, rtx, int));
+static void find_single_use_in_loop PROTO((rtx, rtx, rtx *));
 static int valid_initial_value_p PROTO((rtx, rtx, int, rtx));
 static void find_mem_givs PROTO((rtx, rtx, int, rtx, rtx));
 static void record_biv PROTO((struct induction *, rtx, rtx, rtx, rtx, int, int));
@@ -310,8 +314,13 @@ static rtx simplify_giv_expr PROTO((rtx, int *));
 static int general_induction_var PROTO((rtx, rtx *, rtx *, rtx *));
 static int consec_sets_giv PROTO((int, rtx, rtx, rtx, rtx *, rtx *));
 static int check_dbra_loop PROTO((rtx, int, rtx));
+#ifdef ADDRESS_COST
 static rtx express_from PROTO((struct induction *, struct induction *));
+#endif
 static int combine_givs_p PROTO((struct induction *, struct induction *));
+#ifdef GIV_SORT_CRITERION
+static int giv_sort PROTO((struct induction **, struct induction **));
+#endif
 static void combine_givs PROTO((struct iv_class *));
 static int product_cheap_p PROTO((rtx, rtx));
 static int maybe_eliminate_biv PROTO((struct iv_class *, rtx, rtx, int, int, int));