https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118756

            Bug ID: 118756
           Summary: tree-ssa-loop-ivopts.cc:1156: Function defined but not
                    used
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

Clang says:

gcc/tree-ssa-loop-ivopts.cc:1156:1: warning: function
'contain_complex_addr_expr' is not needed and will not be emitted
[-Wunneeded-internal-declaration]

Source code is

static bool
contain_complex_addr_expr (tree expr)
{

Also:

working $ grep contain_complex_addr_expr ../trunk/gcc/tree-ssa-loop-ivopts.cc
contain_complex_addr_expr (tree expr)
      res |= contain_complex_addr_expr (TREE_OPERAND (expr, 0));
      res |= contain_complex_addr_expr (TREE_OPERAND (expr, 1));
working $ 

Suggest remove function.

Reply via email to