diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2007-07-30 15:35:02 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2007-07-30 15:35:02 +0000 |
commit | 4f5888905c9a368a6399031b7fcd92587e4a6524 (patch) | |
tree | 7d7644025a2690438857f47c7879353d53ce1e19 /gcc/cse.c | |
parent | 89ffa8fc47a2c2a9220f0906a231dfb3ec6e4bb0 (diff) | |
download | gcc-4f5888905c9a368a6399031b7fcd92587e4a6524.zip gcc-4f5888905c9a368a6399031b7fcd92587e4a6524.tar.gz gcc-4f5888905c9a368a6399031b7fcd92587e4a6524.tar.bz2 |
alias.c (mems_in_disjoint_alias_sets_p, [...]): Constify.
* alias.c (mems_in_disjoint_alias_sets_p,
fixed_scalar_and_varying_struct_p, aliases_everything_p,
nonoverlapping_component_refs_p, nonoverlapping_memrefs_p,
write_dependence_p, mems_in_disjoint_alias_sets_p,
read_dependence, true_dependence, canon_true_dependence,
anti_dependence, output_dependence): Constify.
* combine.c (extended_count): Likewise.
* cse.c (cse_rtx_varies_p, hash_rtx, exp_equiv_p): Likewise.
* cselib.c (get_value_hash, references_value_p,
cselib_reg_set_mode, cselib_rtx_varies_p): Likewise.
* cselib.h (cselib_reg_set_mode, references_value_p): Likewise.
* emit-rtl.c (mem_expr_equal_p, active_insn_p): Likewise.
* function.c (contains, prologue_epilogue_contains,
sibcall_epilogue_contains): Likewise.
* jump.c (simplejump_p, condjump_p, condjump_in_parallel_p,
pc_set, any_uncondjump_p, any_condjump_p, onlyjump_p,
only_sets_cc0_p, sets_cc0_p, rtx_renumbered_equal_p, true_regnum,
reg_or_subregno): Likewise.
* recog.c (asm_noperands): Likewise.
* reload1.c (function_invariant_p): Likewise.
* rtl.h (mem_expr_equal_p, active_insn_p, rtx_varies_p,
rtx_addr_varies_p, asm_noperands, exp_equiv_p, hash_rtx,
condjump_p, any_condjump_p, any_uncondjump_p, pc_set,
simplejump_p, onlyjump_p, only_sets_cc0_p, sets_cc0_p,
true_regnum, reg_or_subregno, condjump_in_parallel_p,
extended_count, prologue_epilogue_contains,
sibcall_epilogue_contains, function_invariant_p, true_dependence,
canon_true_dependence, read_dependence, anti_dependence,
output_dependence): Likewise.
* rtlanal.c (rtx_varies_p, rtx_addr_varies_p): Likewise.
java:
* jcf-io.c (find_class): Fix -Wcast-qual warnings.
From-SVN: r127063
Diffstat (limited to 'gcc/cse.c')
-rw-r--r-- | gcc/cse.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -558,7 +558,7 @@ static struct table_elt *insert (rtx, struct table_elt *, unsigned, enum machine_mode); static void merge_equiv_classes (struct table_elt *, struct table_elt *); static void invalidate (rtx, enum machine_mode); -static int cse_rtx_varies_p (rtx, int); +static bool cse_rtx_varies_p (const_rtx, bool); static void remove_invalid_refs (unsigned int); static void remove_invalid_subreg_refs (unsigned int, unsigned int, enum machine_mode); @@ -2059,7 +2059,7 @@ hash_rtx_string (const char *ps) is just (int) MEM plus the hash code of the address. */ unsigned -hash_rtx (rtx x, enum machine_mode mode, int *do_not_record_p, +hash_rtx (const_rtx x, enum machine_mode mode, int *do_not_record_p, int *hash_arg_in_memory_p, bool have_reg_qty) { int i, j; @@ -2373,7 +2373,7 @@ safe_hash (rtx x, enum machine_mode mode) If FOR_GCSE is true, we compare X and Y for equivalence for GCSE. */ int -exp_equiv_p (rtx x, rtx y, int validate, bool for_gcse) +exp_equiv_p (const_rtx x, const_rtx y, int validate, bool for_gcse) { int i, j; enum rtx_code code; @@ -2565,8 +2565,8 @@ exp_equiv_p (rtx x, rtx y, int validate, bool for_gcse) executions of the program. 0 means X can be compared reliably against certain constants or near-constants. */ -static int -cse_rtx_varies_p (rtx x, int from_alias) +static bool +cse_rtx_varies_p (const_rtx x, bool from_alias) { /* We need not check for X and the equivalence class being of the same mode because if X is equivalent to a constant in some mode, it |