public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/98671] New: gcc/config/i386/i386-options.c:787:redundantAssignment
@ 2021-01-14  9:16 dcb314 at hotmail dot com
  2021-01-14 10:29 ` [Bug target/98671] gcc/config/i386/i386-options.c:787:redundantAssignment crazylht at gmail dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: dcb314 at hotmail dot com @ 2021-01-14  9:16 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 98671
           Summary: gcc/config/i386/i386-options.c:787:redundantAssignment
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

trunk.git/gcc/config/i386/i386-options.c:787:28: style: Variable
'opts->x_ix86_branch_cost' is reassigned a value before the old one has been
used. [redundantAssignment]

Source code is

  opts->x_ix86_branch_cost = ptr->branch_cost;
...
  opts->x_ix86_branch_cost = ptr->x_ix86_branch_cost;

Suggest delete first assignment.

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

end of thread, other threads:[~2021-01-14 20:25 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-14  9:16 [Bug target/98671] New: gcc/config/i386/i386-options.c:787:redundantAssignment dcb314 at hotmail dot com
2021-01-14 10:29 ` [Bug target/98671] gcc/config/i386/i386-options.c:787:redundantAssignment crazylht at gmail dot com
2021-01-14 10:39 ` ubizjak at gmail dot com
2021-01-14 11:21 ` dcb314 at hotmail dot com
2021-01-14 15:34 ` ubizjak at gmail dot com
2021-01-14 17:06 ` dcb314 at hotmail dot com
2021-01-14 20:25 ` ubizjak at gmail dot com

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).