public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* committed: remove redundant -Wall from -Warray-bounds (PR 82063)
@ 2018-07-20 21:22 Martin Sebor
  2018-07-24  9:24 ` Franz Sirl
  2022-03-29  9:23 ` options: Remove 'gcc/c-family/c.opt:Warray-bounds' option definition record (was: committed: remove redundant -Wall from -Warray-bounds (PR 82063)) Thomas Schwinge
  0 siblings, 2 replies; 7+ messages in thread
From: Martin Sebor @ 2018-07-20 21:22 UTC (permalink / raw)
  To: Gcc Patch List

As the last observation in PR 82063 Jim points out that

   Both -Warray-bounds and -Warray-bounds= are listed in the c.opt
   file as being enabled by -Wall, but they are the same option,
   and it causes this one option to be processed twice in the
   C_handle_option_auto function in the generated options.c file.
   It gets set to the same value twice, so it does work as intended,
   but this is wasteful.

I have removed the redundant -Wall from the first option and
committed the change as obvious in r262912.

Martin

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

end of thread, other threads:[~2022-03-29 18:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-20 21:22 committed: remove redundant -Wall from -Warray-bounds (PR 82063) Martin Sebor
2018-07-24  9:24 ` Franz Sirl
2018-07-24 15:36   ` Martin Sebor
2018-07-24 19:48     ` Franz Sirl
2018-07-24 20:18       ` Martin Sebor
2022-03-29  9:23 ` options: Remove 'gcc/c-family/c.opt:Warray-bounds' option definition record (was: committed: remove redundant -Wall from -Warray-bounds (PR 82063)) Thomas Schwinge
2022-03-29 18:00   ` Joseph Myers

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