https://gcc.gnu.org/g:727a2538c210104586723c68dad94c239fade839
commit r17-5842-g727a2538c210104586723c68dad94c239fade839 Author: Trevor Saunders <[email protected]> Date: Sat Oct 24 05:33:54 2026 +0000 Pass an rtx_insn * to _fatal_insn_not_found gcc/ChangeLog: * rtl.h (_fatal_insn_not_found): Take a const rtx_insn *. * rtl-error.cc (_fatal_insn_not_found): Likewise. Diff: --- gcc/rtl-error.cc | 2 +- gcc/rtl.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/gcc/rtl-error.cc b/gcc/rtl-error.cc index 9ebfca111af2..73f7c6d6a12c 100644 --- a/gcc/rtl-error.cc +++ b/gcc/rtl-error.cc @@ -109,7 +109,7 @@ _fatal_insn (const char *msgid, const_rtx insn, const char *file, int line, } void -_fatal_insn_not_found (const_rtx insn, const char *file, int line, +_fatal_insn_not_found (const rtx_insn *insn, const char *file, int line, const char *function) { if (INSN_CODE (insn) < 0) diff --git a/gcc/rtl.h b/gcc/rtl.h index 657bf9fd3f55..ea23cc62876b 100644 --- a/gcc/rtl.h +++ b/gcc/rtl.h @@ -4708,7 +4708,8 @@ extern location_t curr_insn_location (void); extern void set_insn_locations (rtx_insn *, location_t); /* rtl-error.cc */ -extern void _fatal_insn_not_found (const_rtx, const char *, int, const char *) +extern void _fatal_insn_not_found (const rtx_insn *, const char *, int, + const char *) ATTRIBUTE_NORETURN ATTRIBUTE_COLD; extern void _fatal_insn (const char *, const_rtx, const char *, int, const char *) ATTRIBUTE_NORETURN ATTRIBUTE_COLD;
