https://gcc.gnu.org/g:dbadc4c8d55abd547e35d7c78d9ca0ce643dc7e2
commit r17-5373-gdbadc4c8d55abd547e35d7c78d9ca0ce643dc7e2 Author: Trevor Saunders <[email protected]> Date: Fri Oct 16 18:59:07 2026 +0200 Pass an rtx_insn * to label_is_jump_target_p Every caller passes BB_HEAD or label_ref_label. gcc/ChangeLog: * rtl.h (label_is_jump_target_p): Take a const rtx_insn *. * rtlanal.cc (label_is_jump_target_p): Likewise. Diff: --- gcc/rtl.h | 2 +- gcc/rtlanal.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/rtl.h b/gcc/rtl.h index efbbb61b2578..6bc14f65747c 100644 --- a/gcc/rtl.h +++ b/gcc/rtl.h @@ -3816,7 +3816,7 @@ extern void remove_node_from_insn_list (const rtx_insn *, rtx_insn_list **); extern bool loc_mentioned_in_p (rtx *, const_rtx); extern rtx_insn *find_first_parameter_load (rtx_insn *, rtx_insn *); extern bool keep_with_call_p (const rtx_insn *); -extern bool label_is_jump_target_p (const_rtx, const rtx_insn *); +extern bool label_is_jump_target_p (const rtx_insn *, const rtx_insn *); extern int pattern_cost (rtx, bool); extern int insn_cost (rtx_insn *, bool); extern unsigned seq_cost (const rtx_insn *, bool); diff --git a/gcc/rtlanal.cc b/gcc/rtlanal.cc index eed715243c1b..fa4d59d0e6f0 100644 --- a/gcc/rtlanal.cc +++ b/gcc/rtlanal.cc @@ -4506,7 +4506,7 @@ keep_with_call_p (const rtx_insn *insn) not apply to the fallthru case of a conditional jump. */ bool -label_is_jump_target_p (const_rtx label, const rtx_insn *jump_insn) +label_is_jump_target_p (const rtx_insn *label, const rtx_insn *jump_insn) { rtx tmp = JUMP_LABEL (jump_insn); rtx_jump_table_data *table;
