diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-07-30 15:35:02 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-07-30 15:35:02 +0000 |
commit | 52d07779c8f1b4d9a2d4b8713f8c004f957ef15d (patch) | |
tree | 7d7644025a2690438857f47c7879353d53ce1e19 /gcc/jump.c | |
parent | 4c0b79b4b59ab8bf642094b120fb96233dde2cbe (diff) | |
download | gcc-52d07779c8f1b4d9a2d4b8713f8c004f957ef15d.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@127063 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/jump.c')
-rw-r--r-- | gcc/jump.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/gcc/jump.c b/gcc/jump.c index 86338243e13..d83b0a55f8f 100644 --- a/gcc/jump.c +++ b/gcc/jump.c @@ -654,7 +654,7 @@ comparison_dominates_p (enum rtx_code code1, enum rtx_code code2) /* Return 1 if INSN is an unconditional jump and nothing else. */ int -simplejump_p (rtx insn) +simplejump_p (const_rtx insn) { return (JUMP_P (insn) && GET_CODE (PATTERN (insn)) == SET @@ -669,9 +669,9 @@ simplejump_p (rtx insn) branch and compare insns. Use any_condjump_p instead whenever possible. */ int -condjump_p (rtx insn) +condjump_p (const_rtx insn) { - rtx x = PATTERN (insn); + const_rtx x = PATTERN (insn); if (GET_CODE (x) != SET || GET_CODE (SET_DEST (x)) != PC) @@ -697,9 +697,9 @@ condjump_p (rtx insn) branch and compare insns. Use any_condjump_p instead whenever possible. */ int -condjump_in_parallel_p (rtx insn) +condjump_in_parallel_p (const_rtx insn) { - rtx x = PATTERN (insn); + const_rtx x = PATTERN (insn); if (GET_CODE (x) != PARALLEL) return 0; @@ -728,7 +728,7 @@ condjump_in_parallel_p (rtx insn) /* Return set of PC, otherwise NULL. */ rtx -pc_set (rtx insn) +pc_set (const_rtx insn) { rtx pat; if (!JUMP_P (insn)) @@ -749,9 +749,9 @@ pc_set (rtx insn) possibly bundled inside a PARALLEL. */ int -any_uncondjump_p (rtx insn) +any_uncondjump_p (const_rtx insn) { - rtx x = pc_set (insn); + const_rtx x = pc_set (insn); if (!x) return 0; if (GET_CODE (SET_SRC (x)) != LABEL_REF) @@ -769,9 +769,9 @@ any_uncondjump_p (rtx insn) Note that unlike condjump_p it returns false for unconditional jumps. */ int -any_condjump_p (rtx insn) +any_condjump_p (const_rtx insn) { - rtx x = pc_set (insn); + const_rtx x = pc_set (insn); enum rtx_code a, b; if (!x) @@ -830,7 +830,7 @@ returnjump_p (rtx insn) nothing more. */ int -onlyjump_p (rtx insn) +onlyjump_p (const_rtx insn) { rtx set; @@ -854,7 +854,7 @@ onlyjump_p (rtx insn) and has no side effects. */ int -only_sets_cc0_p (rtx x) +only_sets_cc0_p (const_rtx x) { if (! x) return 0; @@ -871,7 +871,7 @@ only_sets_cc0_p (rtx x) but also does other things. */ int -sets_cc0_p (rtx x) +sets_cc0_p (const_rtx x) { if (! x) return 0; @@ -1422,7 +1422,7 @@ int rtx_renumbered_equal_p (rtx x, rtx y) { int i; - enum rtx_code code = GET_CODE (x); + const enum rtx_code code = GET_CODE (x); const char *fmt; if (x == y) @@ -1604,7 +1604,7 @@ rtx_renumbered_equal_p (rtx x, rtx y) return -1. Any rtx is valid for X. */ int -true_regnum (rtx x) +true_regnum (const_rtx x) { if (REG_P (x)) { @@ -1629,7 +1629,7 @@ true_regnum (rtx x) /* Return regno of the register REG and handle subregs too. */ unsigned int -reg_or_subregno (rtx reg) +reg_or_subregno (const_rtx reg) { if (GET_CODE (reg) == SUBREG) reg = SUBREG_REG (reg); |