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.
---
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 f3387dd3177..f6fa6c40d33 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 400703208b1..f2aa08cc2ed 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))
--
2.39.5