aboutsummaryrefslogtreecommitdiff
path: root/gcc/rtl.h
diff options
context:
space:
mode:
authorRichard Sandiford <rdsandiford@googlemail.com>2014-08-28 06:24:36 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2014-08-28 06:24:36 +0000
commit8d8e205b922741ad452fbe0750d2d8af8515c967 (patch)
treedb4367ff6bcb7499b02a7ff3447bdf9b75a3d5e3 /gcc/rtl.h
parentf7d0b0fc77b26e5fa6872678099576e875d87ed5 (diff)
downloadgcc-8d8e205b922741ad452fbe0750d2d8af8515c967.zip
gcc-8d8e205b922741ad452fbe0750d2d8af8515c967.tar.gz
gcc-8d8e205b922741ad452fbe0750d2d8af8515c967.tar.bz2
rtl.h (for_each_inc_dec_fn): Remove special case for -1.
gcc/ * rtl.h (for_each_inc_dec_fn): Remove special case for -1. (for_each_inc_dec): Take an rtx rather than an rtx *. * cselib.c (cselib_record_autoinc_cb): Update accordingly. (cselib_record_sets): Likewise. * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1) (check_for_inc_dec): Likewise. * rtlanal.c (for_each_inc_dec_ops): Delete. (for_each_inc_dec_find_inc_dec): Take the MEM as argument, rather than a pointer to the memory address. Replace for_each_inc_dec_ops argument with separate function and data arguments. Abort on non-autoinc addresses. (for_each_inc_dec_find_mem): Delete. (for_each_inc_dec): Take an rtx rather than an rtx *. Use FOR_EACH_SUBRTX_VAR to visit every autoinc MEM. From-SVN: r214657
Diffstat (limited to 'gcc/rtl.h')
-rw-r--r--gcc/rtl.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/gcc/rtl.h b/gcc/rtl.h
index 0877060..b18f2e1 100644
--- a/gcc/rtl.h
+++ b/gcc/rtl.h
@@ -2807,12 +2807,11 @@ extern int for_each_rtx_in_insn (rtx_insn **, rtx_function, void *);
within MEM that sets DEST to SRC + SRCOFF, or SRC if SRCOFF is
NULL. The callback is passed the same opaque ARG passed to
for_each_inc_dec. Return zero to continue looking for other
- autoinc operations, -1 to skip OP's operands, and any other value
- to interrupt the traversal and return that value to the caller of
- for_each_inc_dec. */
+ autoinc operations or any other value to interrupt the traversal and
+ return that value to the caller of for_each_inc_dec. */
typedef int (*for_each_inc_dec_fn) (rtx mem, rtx op, rtx dest, rtx src,
rtx srcoff, void *arg);
-extern int for_each_inc_dec (rtx_insn **, for_each_inc_dec_fn, void *arg);
+extern int for_each_inc_dec (rtx, for_each_inc_dec_fn, void *arg);
typedef int (*rtx_equal_p_callback_function) (const_rtx *, const_rtx *,
rtx *, rtx *);