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

            Bug ID: 118866
           Summary: LABEL_REF without updating LABEL_NUSES
           Product: gcc
           Version: 14.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hjl.tools at gmail dot com
                CC: richard.earnshaw at arm dot com
  Target Milestone: ---

On some targets, LABEL_REF is used without updating LABEL_NUSES.
Arm is one of them:

       if (!BARRIER_P (this_fix->insn))
          {     
            rtx addr
              = plus_constant (Pmode,
                               gen_rtx_LABEL_REF (VOIDmode,
                                                  minipool_vector_label),
                               this_fix->minipool->offset);
            *this_fix->loc = gen_rtx_MEM (this_fix->mode, addr);
          }     

minipool_vector_label LABEL_REF is used, but its LABEL_NUSES is 0.

Reply via email to