https://gcc.gnu.org/g:0e972979af0728a9c2776548a48d2617028cffae
commit r17-5860-g0e972979af0728a9c2776548a48d2617028cffae Author: Trevor Saunders <[email protected]> Date: Sun Oct 25 13:02:39 2026 +0000 Use rtx_insn * where it always is one gcc/ChangeLog: * config/aarch64/aarch64.md (doloop_end): Use an rtx_insn *. * config/c6x/c6x.cc (insn_set_clock, insn_get_clock): Pass an rtx_insn *. * config/ia64/ia64.cc (ia64_gen_spec_load): Likewise. * config/mips/mips.cc (mips16_copy_fpr_return_value): Use an rtx_insn *. * config/rs6000/rs6000.md (allocate_stack): Likewise. * config/s390/s390.cc (s390_find_execute): Pass an rtx_insn *. * config/sh/sh.md (sibcall_pcrel): Use an rtx_insn *. * var-tracking.cc (reemit_marker_as_note): Use an rtx_note *. Diff: --- gcc/config/aarch64/aarch64.md | 2 +- gcc/config/c6x/c6x.cc | 4 ++-- gcc/config/ia64/ia64.cc | 2 +- gcc/config/mips/mips.cc | 3 ++- gcc/config/rs6000/rs6000.md | 3 ++- gcc/config/s390/s390.cc | 2 +- gcc/config/sh/sh.md | 2 +- gcc/var-tracking.cc | 2 +- 8 files changed, 11 insertions(+), 9 deletions(-) diff --git a/gcc/config/aarch64/aarch64.md b/gcc/config/aarch64/aarch64.md index f977232536e8..ef39942f8fb2 100644 --- a/gcc/config/aarch64/aarch64.md +++ b/gcc/config/aarch64/aarch64.md @@ -8546,7 +8546,7 @@ rtx bcomp; rtx loc_ref; rtx cc_reg; - rtx insn; + rtx_insn *insn; rtx cmp; /* Currently SMS relies on the do-loop pattern to recognize loops diff --git a/gcc/config/c6x/c6x.cc b/gcc/config/c6x/c6x.cc index b96149b0248f..febee9f429d9 100644 --- a/gcc/config/c6x/c6x.cc +++ b/gcc/config/c6x/c6x.cc @@ -3695,7 +3695,7 @@ record_jump (int cycle, rtx cond) /* Set the clock cycle of INSN to CYCLE. Also clears the insn's entry in new_conditions. */ static void -insn_set_clock (rtx insn, int cycle) +insn_set_clock (rtx_insn *insn, int cycle) { unsigned uid = INSN_UID (insn); @@ -3717,7 +3717,7 @@ insn_uid_get_clock (int uid) /* Return the clock cycle we set for INSN. */ static int -insn_get_clock (rtx insn) +insn_get_clock (rtx_insn *insn) { return insn_uid_get_clock (INSN_UID (insn)); } diff --git a/gcc/config/ia64/ia64.cc b/gcc/config/ia64/ia64.cc index 9ee3ab5ed408..221388c43c8b 100644 --- a/gcc/config/ia64/ia64.cc +++ b/gcc/config/ia64/ia64.cc @@ -8334,7 +8334,7 @@ ia64_get_insn_checked_ds (rtx_insn *insn) MODE_NO and with ZERO_EXTEND (if EXTEND_P is true). If GEN_P is false, just calculate the index of needed speculation check. */ static rtx -ia64_gen_spec_load (rtx insn, ds_t ts, int mode_no) +ia64_gen_spec_load (rtx_insn *insn, ds_t ts, int mode_no) { rtx pat, new_pat; gen_func_t gen_load; diff --git a/gcc/config/mips/mips.cc b/gcc/config/mips/mips.cc index 84fac7f2bdb0..1cf3a1ab9b94 100644 --- a/gcc/config/mips/mips.cc +++ b/gcc/config/mips/mips.cc @@ -7865,7 +7865,8 @@ mips16_build_function_stub (void) static void mips16_copy_fpr_return_value (void) { - rtx fn, insn, retval; + rtx fn, retval; + rtx_insn *insn; tree return_type; machine_mode return_mode; const char *name; diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md index 58eb4b18f083..d2d2a95eaa9a 100644 --- a/gcc/config/rs6000/rs6000.md +++ b/gcc/config/rs6000/rs6000.md @@ -11197,7 +11197,8 @@ rtx chain = gen_reg_rtx (Pmode); rtx stack_bot = gen_rtx_MEM (Pmode, stack_pointer_rtx); rtx neg_op0; - rtx insn, par, set, mem; + rtx_insn *insn; + rtx par, set, mem; /* By allowing reg_or_cint_operand as the predicate we can get better code for stack-clash-protection because we do not lose diff --git a/gcc/config/s390/s390.cc b/gcc/config/s390/s390.cc index 1c5ec4ff4d6f..559db8bb2538 100644 --- a/gcc/config/s390/s390.cc +++ b/gcc/config/s390/s390.cc @@ -9950,7 +9950,7 @@ s390_execute_label (rtx insn) the pool to the location of the execute target. */ static rtx -s390_find_execute (struct constant_pool *pool, rtx insn) +s390_find_execute (struct constant_pool *pool, rtx_insn *insn) { struct constant *c; diff --git a/gcc/config/sh/sh.md b/gcc/config/sh/sh.md index 82304cb9dbb3..1f5830ba3af1 100644 --- a/gcc/config/sh/sh.md +++ b/gcc/config/sh/sh.md @@ -7303,7 +7303,7 @@ [(const_int 0)] { rtx lab = PATTERN (gen_call_site ()); - rtx call_insn; + rtx_insn *call_insn; sh_expand_sym_label2reg (operands[2], operands[0], lab, true); call_insn = emit_call_insn (gen_sibcalli_pcrel (operands[2], operands[1], diff --git a/gcc/var-tracking.cc b/gcc/var-tracking.cc index a24de59c2a35..9781dd33de2e 100644 --- a/gcc/var-tracking.cc +++ b/gcc/var-tracking.cc @@ -10025,7 +10025,7 @@ reemit_marker_as_note (rtx_insn *insn) case NOTE_INSN_BEGIN_STMT: case NOTE_INSN_INLINE_ENTRY: { - rtx_insn *note = NULL; + rtx_note *note = NULL; if (cfun->debug_nonbind_markers) { note = emit_note_before (kind, insn);
