public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/112948] New: gcc/config/aarch64/aarch64-early-ra.cc:1953: possible cut'n'paste error ?
@ 2023-12-10 22:40 dcb314 at hotmail dot com
  2023-12-11 10:07 ` [Bug target/112948] " rsandifo at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: dcb314 at hotmail dot com @ 2023-12-10 22:40 UTC (permalink / raw)
  To: gcc-bugs

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]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-12-21 10:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-10 22:40 [Bug target/112948] New: gcc/config/aarch64/aarch64-early-ra.cc:1953: possible cut'n'paste error ? dcb314 at hotmail dot com
2023-12-11 10:07 ` [Bug target/112948] " rsandifo at gcc dot gnu.org
2023-12-21 10:20 ` cvs-commit at gcc dot gnu.org
2023-12-21 10:24 ` rsandifo at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).