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

            Bug ID: 90975
           Summary: A suspicious code in optabs.c since r177852
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
                CC: rsandifo at gcc dot gnu.org
  Target Milestone: ---

Reported by clang-static-analyzer:

$ cat -n gcc/optabs.c | less
...
2093        /* If we are optimizing, force expensive constants into a register.
 */
  2094        xop0 = avoid_expensive_constant (mode0, binoptab, 0, xop0,
unsignedp);
  2095        xop1 = avoid_expensive_constant (mode1, binoptab, 1, xop1,
unsignedp);
  2096  
  2097        create_fixed_operand (&ops[0], targ0);
  2098        create_convert_operand_from (&ops[1], op0, mode, unsignedp);
  2099        create_convert_operand_from (&ops[2], op1, mode, unsignedp);
  2100        create_fixed_operand (&ops[3], targ1);
  2101        if (maybe_expand_insn (icode, 4, ops))
  2102          return 1;
  2103        delete_insns_since (last);
  2104      }
...

Do I see correctly that xop0 and xop1 are unused?

Reply via email to