https://gcc.gnu.org/g:a3d09e10900457d3ef91519611aac268b9e7dc42
commit r17-4270-ga3d09e10900457d3ef91519611aac268b9e7dc42 Author: Takayuki 'January June' Suwa <[email protected]> Date: Sun Sep 13 05:09:20 2026 +0900 xtensa: Make xt_true_regnum() static The function xt_true_regnum(), defined in xtensa.cc, is not currently called from any other files. gcc/ChangeLog: * config/xtensa/xtensa-protos.h (xt_true_regnum): Remove. * config/xtensa/xtensa.cc (xt_true_regnum): Specify as a static function. Diff: --- gcc/config/xtensa/xtensa-protos.h | 1 - gcc/config/xtensa/xtensa.cc | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/gcc/config/xtensa/xtensa-protos.h b/gcc/config/xtensa/xtensa-protos.h index f3387dd3177d..f6fa6c40d331 100644 --- a/gcc/config/xtensa/xtensa-protos.h +++ b/gcc/config/xtensa/xtensa-protos.h @@ -34,7 +34,6 @@ extern bool xtensa_mem_offset (unsigned, machine_mode); /* Functions within xtensa.cc that we reference. */ #ifdef RTX_CODE -extern int xt_true_regnum (rtx); extern int xtensa_valid_move (machine_mode, rtx *); extern bool smalloffset_address_p (const_rtx); extern bool constantpool_address_p (const_rtx); diff --git a/gcc/config/xtensa/xtensa.cc b/gcc/config/xtensa/xtensa.cc index ae0cde876a26..5ff0f25cc279 100644 --- a/gcc/config/xtensa/xtensa.cc +++ b/gcc/config/xtensa/xtensa.cc @@ -541,7 +541,7 @@ xtensa_fp_const (const REAL_VALUE_TYPE *rval) /* This is just like the standard true_regnum() function except that it works even when reg_renumber is not initialized. */ -int +static int xt_true_regnum (rtx x) { if (REG_P (x))
