diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 1999-10-06 14:48:41 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 1999-10-06 14:48:41 +0000 |
commit | f428f25240c4c54be3a1504d1122b6b19009fbe3 (patch) | |
tree | 9130a8d0694e0c7e16fedf58621b0487a85a2847 /gcc/reload.c | |
parent | 1e0a44093bf44af9de6a2d71198436d606f012ca (diff) | |
download | gcc-f428f25240c4c54be3a1504d1122b6b19009fbe3.zip gcc-f428f25240c4c54be3a1504d1122b6b19009fbe3.tar.gz gcc-f428f25240c4c54be3a1504d1122b6b19009fbe3.tar.bz2 |
collect2.c (scan_prog_file, [...]): Prototype function pointers and casts for `int_handler' and `quit_handler'.
* collect2.c (scan_prog_file, scan_libraries): Prototype function
pointers and casts for `int_handler' and `quit_handler'.
* flow.c (verify_flow_info, split_hard_reg_notes,
find_insn_with_note, sets_reg_or_subreg_1, prepend_reg_notes,
remove_edge, remove_fake_successors): Add static prototypes.
(verify_flow_info): Wrap with macro ENABLE_CHECKING.
(mark_set_1): Initialize variable `regno'.
(unlink_insn_chain): Likewise for variable `curr'.
(remove_fake_edges): Remove unused variables `e', `tmp' and `last'.
* loop.c (strength_reduce): Initialize variable
`unrolled_insn_copies'.
(cmp_combine_givs_stats, cmp_recombine_givs_stats): Add static
prototypes. Change these functions to take const PTR parameters
to avoid prototype conflict when used as the comparson argument
for qsort.
(check_dbra_loop): Initialize variable `comparison_val'.
* reload.c (debug_reload_to_stream, debug_reload): Add prototypes.
(get_secondary_mem): Mark parameter `x' with ATTRIBUTE_UNUSED.
(find_valid_class): Initialize variable `best_class'.
(find_reloads): Call memcpy, not bcopy.
* reload1.c (gen_mode_int, dump_needs): Add prototypes.
(hard_reg_use_compare): Don't needlessly cast away const.
(reload_reg_class_lower): Likewise.
(choose_reload_regs): Initialize variable `regno'.
From-SVN: r29840
Diffstat (limited to 'gcc/reload.c')
-rw-r--r-- | gcc/reload.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/gcc/reload.c b/gcc/reload.c index 6ca7322..011d0a9 100644 --- a/gcc/reload.c +++ b/gcc/reload.c @@ -272,6 +272,8 @@ static rtx find_reloads_subreg_address PROTO((rtx, int, int, enum reload_type, int, rtx)); static int find_inc_amount PROTO((rtx, rtx)); static int loc_mentioned_in_p PROTO((rtx *, rtx)); +extern void debug_reload_to_stream PROTO((FILE *)); +extern void debug_reload PROTO((void)); #ifdef HAVE_SECONDARY_RELOADS @@ -571,7 +573,7 @@ push_secondary_reload (in_p, x, opnum, optional, reload_class, reload_mode, rtx get_secondary_mem (x, mode, opnum, type) - rtx x; + rtx x ATTRIBUTE_UNUSED; enum machine_mode mode; int opnum; enum reload_type type; @@ -658,7 +660,7 @@ find_valid_class (m1, n) { int class; int regno; - enum reg_class best_class; + enum reg_class best_class = NO_REGS; int best_size = 0; for (class = 1; class < N_REG_CLASSES; class++) @@ -2452,10 +2454,9 @@ find_reloads (insn, replace, ind_levels, live_known, reload_reg_p) insn_code_number = INSN_CODE (insn); this_insn_is_asm = insn_code_number < 0; - bcopy ((char *) recog_data.operand_mode, (char *) operand_mode, - noperands * sizeof (enum machine_mode)); - bcopy ((char *) recog_data.constraints, (char *) constraints, - noperands * sizeof (char *)); + memcpy (operand_mode, recog_data.operand_mode, + noperands * sizeof (enum machine_mode)); + memcpy (constraints, recog_data.constraints, noperands * sizeof (char *)); commutative = -1; @@ -3433,8 +3434,8 @@ find_reloads (insn, replace, ind_levels, live_known, reload_reg_p) pref_or_nothing[commutative] = pref_or_nothing[commutative + 1]; pref_or_nothing[commutative + 1] = t; - bcopy ((char *) recog_data.constraints, (char *) constraints, - noperands * sizeof (char *)); + memcpy (constraints, recog_data.constraints, + noperands * sizeof (char *)); goto try_swapped; } else |