get_fold_mem_root is only used within fold-mem-offsets.cc.
Mark it as static.

gcc/ChangeLog:

        * fold-mem-offsets.cc (get_fold_mem_root): Add static.

---

 gcc/fold-mem-offsets.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/fold-mem-offsets.cc b/gcc/fold-mem-offsets.cc
index bcc840ece0a5..870dcaf3b3da 100644
--- a/gcc/fold-mem-offsets.cc
+++ b/gcc/fold-mem-offsets.cc
@@ -587,7 +587,7 @@ fold_offsets (rtx_insn *insn, rtx reg, bool analyze, bitmap 
foldable_insns)
    REG_OUT and OFFSET_OUT the RTX that has a MEM code, the register that is
    used as a base address and the offset accordingly.
    All of the out pointers may be NULL in which case they will be ignored.  */
-bool
+static bool
 get_fold_mem_root (rtx_insn *insn, rtx *mem_out, rtx *reg_out,
                   HOST_WIDE_INT *offset_out)
 {
-- 
2.34.1

Reply via email to