diff options
author | Trevor Saunders <tbsaunde+gcc@tbsaunde.org> | 2016-11-02 03:44:50 +0000 |
---|---|---|
committer | Trevor Saunders <tbsaunde@gcc.gnu.org> | 2016-11-02 03:44:50 +0000 |
commit | 9b2ea071ab12eb84e9be8631d64296bc5c0be7ae (patch) | |
tree | 986b342a8cf066b1df1ec57dc9b81dbebf1a3cd5 /gcc/config/sh | |
parent | 3f95ca6c0f89f31d0caf0aeb056e53c7bbcd7af3 (diff) | |
download | gcc-9b2ea071ab12eb84e9be8631d64296bc5c0be7ae.zip gcc-9b2ea071ab12eb84e9be8631d64296bc5c0be7ae.tar.gz gcc-9b2ea071ab12eb84e9be8631d64296bc5c0be7ae.tar.bz2 |
use rtx_insn * in various places where it is obvious
gcc/ChangeLog:
2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
* config/arc/arc.c (arc_emit_call_tls_get_addr): Make the type
of variables rtx_insn *.
* config/arm/arm.c (arm_call_tls_get_addr): Likewise.
(legitimize_tls_address): Likewise.
* config/bfin/bfin.c (hwloop_optimize): Likewise.
(bfin_gen_bundles): Likewise.
* config/c6x/c6x.c (reorg_split_calls): Likewise.
(c6x_reorg): Likewise.
* config/frv/frv.c (frv_reorder_packet): Likewise.
* config/i386/i386.c (ix86_split_idivmod): Likewise.
* config/ia64/ia64.c (ia64_expand_compare): Likewise.
* config/m32c/m32c.c (m32c_prepare_shift): Likewise.
* config/mn10300/mn10300.c: Likewise.
* config/rl78/rl78.c: Likewise.
* config/s390/s390.c (s390_fix_long_loop_prediction): Likewise.
* config/sh/sh-mem.cc (sh_expand_cmpstr): Likewise.
(sh_expand_cmpnstr): Likewise.
(sh_expand_strlen): Likewise.
(sh_expand_setmem): Likewise.
* config/sh/sh.md: Likewise.
* emit-rtl.c (emit_pattern_before): Likewise.
* except.c: Likewise.
* final.c: Likewise.
* jump.c: Likewise.
From-SVN: r241768
Diffstat (limited to 'gcc/config/sh')
-rw-r--r-- | gcc/config/sh/sh-mem.cc | 8 | ||||
-rw-r--r-- | gcc/config/sh/sh.md | 18 |
2 files changed, 13 insertions, 13 deletions
diff --git a/gcc/config/sh/sh-mem.cc b/gcc/config/sh/sh-mem.cc index 1773f1d..b965aed 100644 --- a/gcc/config/sh/sh-mem.cc +++ b/gcc/config/sh/sh-mem.cc @@ -204,7 +204,7 @@ sh_expand_cmpstr (rtx *operands) rtx tmp2 = gen_reg_rtx (SImode); rtx tmp3 = gen_reg_rtx (SImode); - rtx jump; + rtx_insn *jump; rtx_code_label *L_return = gen_label_rtx (); rtx_code_label *L_loop_byte = gen_label_rtx (); rtx_code_label *L_end_loop_byte = gen_label_rtx (); @@ -342,7 +342,7 @@ sh_expand_cmpnstr (rtx *operands) rtx tmp1 = gen_reg_rtx (SImode); rtx tmp2 = gen_reg_rtx (SImode); - rtx jump; + rtx_insn *jump; rtx_code_label *L_return = gen_label_rtx (); rtx_code_label *L_loop_byte = gen_label_rtx (); rtx_code_label *L_end_loop_byte = gen_label_rtx (); @@ -583,7 +583,7 @@ sh_expand_strlen (rtx *operands) rtx_code_label *L_return = gen_label_rtx (); rtx_code_label *L_loop_byte = gen_label_rtx (); - rtx jump; + rtx_insn *jump; rtx_code_label *L_loop_long = gen_label_rtx (); rtx_code_label *L_end_loop_long = gen_label_rtx (); @@ -669,7 +669,7 @@ sh_expand_setmem (rtx *operands) rtx_code_label *L_loop_byte = gen_label_rtx (); rtx_code_label *L_loop_word = gen_label_rtx (); rtx_code_label *L_return = gen_label_rtx (); - rtx jump; + rtx_insn *jump; rtx dest = copy_rtx (operands[0]); rtx dest_addr = copy_addr_to_reg (XEXP (dest, 0)); rtx val = force_reg (SImode, operands[2]); diff --git a/gcc/config/sh/sh.md b/gcc/config/sh/sh.md index e80ef58..c6956a0 100644 --- a/gcc/config/sh/sh.md +++ b/gcc/config/sh/sh.md @@ -3044,7 +3044,7 @@ "&& 1" [(const_int 0)] { - rtx prev_set_t_insn = NULL_RTX; + rtx_insn *prev_set_t_insn = NULL; if (!arith_reg_operand (operands[3], SImode)) { @@ -3105,7 +3105,7 @@ && ! reg_referenced_p (get_t_reg_rtx (), PATTERN (prev_set_t_insn)))) { - prev_set_t_insn = NULL_RTX; + prev_set_t_insn = NULL; tmp_t_reg = gen_reg_rtx (SImode); emit_insn (gen_move_insn (tmp_t_reg, get_t_reg_rtx ())); } @@ -3174,7 +3174,7 @@ if (INTVAL (operands[2]) > 1) { const rtx shift_count = GEN_INT (INTVAL (operands[2]) - 1); - rtx prev_set_t_insn = NULL_RTX; + rtx_insn *prev_set_t_insn = NULL; rtx tmp_t_reg = NULL_RTX; /* If we're going to emit a shift sequence that clobbers the T_REG, @@ -3205,7 +3205,7 @@ && ! reg_referenced_p (get_t_reg_rtx (), PATTERN (prev_set_t_insn)))) { - prev_set_t_insn = NULL_RTX; + prev_set_t_insn = NULL; tmp_t_reg = gen_reg_rtx (SImode); emit_insn (gen_move_insn (tmp_t_reg, get_t_reg_rtx ())); } @@ -4518,7 +4518,7 @@ "TARGET_SH1 && ! TARGET_ZDCBRANCH" [(const_int 0)] { - rtx skip_neg_label = gen_label_rtx (); + rtx_code_label *skip_neg_label = gen_label_rtx (); emit_move_insn (operands[0], operands[1]); @@ -4545,7 +4545,7 @@ "&& can_create_pseudo_p ()" [(const_int 0)] { - rtx skip_neg_label = gen_label_rtx (); + rtx_code_label *skip_neg_label = gen_label_rtx (); emit_move_insn (operands[0], operands[1]); @@ -7456,7 +7456,7 @@ [(match_operand 0 "" "") (match_operand 1 "" "")] "" { - rtx gotoffsym, insn; + rtx gotoffsym; rtx t = (!can_create_pseudo_p () ? operands[0] : gen_reg_rtx (GET_MODE (operands[0]))); @@ -7467,7 +7467,7 @@ gotoffsym = gen_sym2GOTOFF (operands[1]); PUT_MODE (gotoffsym, Pmode); emit_move_insn (t, gotoffsym); - insn = emit_move_insn (operands[0], gen_rtx_PLUS (Pmode, t, picreg)); + rtx_insn *insn = emit_move_insn (operands[0], gen_rtx_PLUS (Pmode, t, picreg)); set_unique_reg_note (insn, REG_EQUAL, operands[1]); @@ -8825,7 +8825,7 @@ "&& 1" [(const_int 0)] { - rtx skip_label = gen_label_rtx (); + rtx_code_label *skip_label = gen_label_rtx (); emit_move_insn (operands[0], operands[1]); rtx cmp_val = operands[2]; |