diff options
author | Mikhail Maltsev <maltsevm@gmail.com> | 2015-06-06 05:39:16 +0000 |
---|---|---|
committer | Mikhail Maltsev <miyuki@gcc.gnu.org> | 2015-06-06 05:39:16 +0000 |
commit | bb5c49564ff5ec66f4ae39a00b2ed59189f95fc8 (patch) | |
tree | 59990e06cf8ced52d365080821323351c4790c1c /gcc/recog.h | |
parent | 2bc43588affbcf4370c8f82e8797618e37dbe90d (diff) | |
download | gcc-bb5c49564ff5ec66f4ae39a00b2ed59189f95fc8.zip gcc-bb5c49564ff5ec66f4ae39a00b2ed59189f95fc8.tar.gz gcc-bb5c49564ff5ec66f4ae39a00b2ed59189f95fc8.tar.bz2 |
Promote types of rtl expressions to rtx_insn in gen_split and gen_peephole2
* combine.c (combine_split_insns): Remove cast.
* config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
* config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
* config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
* emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
* genemit.c (gen_split): Change return type of generated functions to
rtx_insn.
* genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
(print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
gen_peephole2_* functions.
(print_subroutine, main): Likewise.
* recog.c (peephole2_optimize): Remove cast.
(peep2_next_insn): Promote return type to rtx_insn.
* recog.h (peep2_next_insn): Fix prototype.
* rtl.h (try_split, split_insns): Likewise.
From-SVN: r224183
Diffstat (limited to 'gcc/recog.h')
-rw-r--r-- | gcc/recog.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/recog.h b/gcc/recog.h index d97f4df..ce931eb 100644 --- a/gcc/recog.h +++ b/gcc/recog.h @@ -139,14 +139,14 @@ extern void preprocess_constraints (int, int, const char **, operand_alternative *); extern const operand_alternative *preprocess_insn_constraints (int); extern void preprocess_constraints (rtx_insn *); -extern rtx peep2_next_insn (int); +extern rtx_insn *peep2_next_insn (int); extern int peep2_regno_dead_p (int, int); extern int peep2_reg_dead_p (int, rtx); #ifdef CLEAR_HARD_REG_SET extern rtx peep2_find_free_register (int, int, const char *, machine_mode, HARD_REG_SET *); #endif -extern rtx peephole2_insns (rtx, rtx, int *); +extern rtx_insn *peephole2_insns (rtx, rtx_insn *, int *); extern int store_data_bypass_p (rtx_insn *, rtx_insn *); extern int if_test_bypass_p (rtx_insn *, rtx_insn *); |