https://gcc.gnu.org/g:1e40bf262a49cec469d1d305103e997bfe3f805b
commit r17-5845-g1e40bf262a49cec469d1d305103e997bfe3f805b Author: Trevor Saunders <[email protected]> Date: Sat Oct 24 07:12:45 2026 +0000 Use rtx_jump_insn * for locals set by emit_jump_insn_before/after gcc/ChangeLog: * config/microblaze/microblaze.cc (microblaze_expand_divide): Use rtx_jump_insn * for locals set by emit_jump_insn_before or emit_jump_insn_after. * config/mips/mips.cc (mips16_lay_out_constants): Likewise. * config/mn10300/mn10300.cc (mn10300_insert_setlb_lcc): Likewise. * config/pru/pru.cc (pru_reorg_loop): Likewise. * config/s390/s390.cc (s390_fix_long_loop_prediction): Likewise. Diff: --- gcc/config/microblaze/microblaze.cc | 6 +++--- gcc/config/mips/mips.cc | 4 ++-- gcc/config/mn10300/mn10300.cc | 2 +- gcc/config/pru/pru.cc | 4 ++-- gcc/config/s390/s390.cc | 3 +-- 5 files changed, 9 insertions(+), 10 deletions(-) diff --git a/gcc/config/microblaze/microblaze.cc b/gcc/config/microblaze/microblaze.cc index 63d8064f93f8..c89cba77994d 100644 --- a/gcc/config/microblaze/microblaze.cc +++ b/gcc/config/microblaze/microblaze.cc @@ -3735,10 +3735,10 @@ microblaze_expand_divide (rtx operands[]) rtx div_table_rtx = gen_rtx_SYMBOL_REF (QImode,"_divsi3_table"); rtx mem_rtx; rtx ret; - rtx_insn *jump, *cjump, *insn; + rtx_insn *insn; insn = emit_insn (gen_iorsi3 (regt1, operands[1], operands[2])); - cjump = emit_jump_insn_after (gen_cbranchsi4 ( + rtx_jump_insn *cjump = emit_jump_insn_after (gen_cbranchsi4 ( gen_rtx_GTU (SImode, regt1, GEN_INT (15)), regt1, GEN_INT (15), div_label), insn); LABEL_NUSES (div_label) = 1; @@ -3752,7 +3752,7 @@ microblaze_expand_divide (rtx operands[]) insn = emit_insn (gen_movqi (regqi, mem_rtx)); insn = emit_insn (gen_movsi (operands[0], gen_rtx_SUBREG (SImode, regqi, 0))); - jump = emit_jump_insn_after (gen_jump (div_end_label), insn); + rtx_jump_insn *jump = emit_jump_insn_after (gen_jump (div_end_label), insn); JUMP_LABEL (jump) = div_end_label; LABEL_NUSES (div_end_label) = 1; emit_barrier (); diff --git a/gcc/config/mips/mips.cc b/gcc/config/mips/mips.cc index 6e75f69add19..b7101c68daac 100644 --- a/gcc/config/mips/mips.cc +++ b/gcc/config/mips/mips.cc @@ -18124,11 +18124,11 @@ mips16_lay_out_constants (bool split_p) if (barrier == 0 && pool.insn_address + 4 > pool.highest_address) { rtx_code_label *label; - rtx_insn *jump; label = gen_label_rtx (); - jump = emit_jump_insn_before (gen_jump (label), insn); + rtx_jump_insn *jump + = emit_jump_insn_before (gen_jump (label), insn); JUMP_LABEL (jump) = label; LABEL_NUSES (label) = 1; barrier = emit_barrier_after (jump); diff --git a/gcc/config/mn10300/mn10300.cc b/gcc/config/mn10300/mn10300.cc index c95d126f6ec7..57c7a5cc5679 100644 --- a/gcc/config/mn10300/mn10300.cc +++ b/gcc/config/mn10300/mn10300.cc @@ -3193,7 +3193,7 @@ mn10300_insert_setlb_lcc (rtx_insn *label, rtx_insn *branch) else lcc = gen_Lcc (comparison, label); - rtx_insn *jump = emit_jump_insn_before (lcc, branch); + rtx_jump_insn *jump = emit_jump_insn_before (lcc, branch); mark_jump_label (XVECEXP (lcc, 0, 0), jump, 0); JUMP_LABEL (jump) = label; DUMP ("Replacing branch insn...", branch); diff --git a/gcc/config/pru/pru.cc b/gcc/config/pru/pru.cc index 80101b0f1a9b..4c85bed1443a 100644 --- a/gcc/config/pru/pru.cc +++ b/gcc/config/pru/pru.cc @@ -2914,8 +2914,8 @@ pru_reorg_loop (rtx_insn *insns) /* Replace the others with branches to REPEAT_LABEL. */ for (end = loop->end->next; end != 0; end = end->next) { - rtx_insn *newjmp; - newjmp = emit_jump_insn_before (gen_jump (repeat_label), end->insn); + rtx_jump_insn *newjmp + = emit_jump_insn_before (gen_jump (repeat_label), end->insn); JUMP_LABEL (newjmp) = repeat_label; delete_insn (end->insn); delete_insn (end->fallthrough); diff --git a/gcc/config/s390/s390.cc b/gcc/config/s390/s390.cc index 1d82ab89b9f4..fb190c036bf7 100644 --- a/gcc/config/s390/s390.cc +++ b/gcc/config/s390/s390.cc @@ -14918,7 +14918,6 @@ s390_fix_long_loop_prediction (rtx_insn *insn) { rtx set = single_set (insn); rtx label_ref; - rtx_insn *uncond_jump; rtx_insn *cur_insn; rtx tmp; int distance; @@ -14960,7 +14959,7 @@ s390_fix_long_loop_prediction (rtx_insn *insn) return false; rtx_code_label *new_label = gen_label_rtx (); - uncond_jump = emit_jump_insn_after ( + rtx_jump_insn *uncond_jump = emit_jump_insn_after ( gen_rtx_SET (pc_rtx, gen_rtx_LABEL_REF (VOIDmode, code_label)), insn);
