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

            Bug ID: 112948
           Summary: gcc/config/aarch64/aarch64-early-ra.cc:1953: possible
                    cut'n'paste error ?
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

Source code is

      if (group1->strided_polarity)
        group2->strided_polarity = group1->strided_polarity * pref;
      else if (group1->strided_polarity)
        group2->strided_polarity = group1->strided_polarity * pref;
      else

Here is static analyser cppcheck finding the problem:

gcc/config/aarch64/aarch64-early-ra.cc:1953:19: style: Expression is always
false because 'else if' condition matches previous condition at line 1951.
[multiCondition]

Reply via email to