public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [RFA 0/9] Enable -Wimplicit-fallthrough
@ 2018-04-21 18:31 Tom Tromey
  2018-04-21 18:31 ` [RFA 2/9] Add missing ATTRIBUTE_NORETURNs Tom Tromey
                   ` (9 more replies)
  0 siblings, 10 replies; 14+ messages in thread
From: Tom Tromey @ 2018-04-21 18:31 UTC (permalink / raw)
  To: gdb-patches

This series enables -Wimplicit-fallthrough for gdb.  I think this is
valuable because it can prevent the occasional bug.

A couple of the patches are straightforward.  For example, patch #1
changes existing "fall-through" comments to the correct form that will
be recognized by GCC.

In some cases I was not sure which change to make.  I've split all
these out in this series for easier review.  Please examine them
carefully.  This applies to patches 4, 5, 6, and 8.

I chose to use comments rather than the new fall-through attribute
because the comments are more portable: they can be ignored by
compilers that do not understand them, and they do not require
additional configury.

Tested by the buildbot.

Tom

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

end of thread, other threads:[~2018-05-04 18:47 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-21 18:31 [RFA 0/9] Enable -Wimplicit-fallthrough Tom Tromey
2018-04-21 18:31 ` [RFA 2/9] Add missing ATTRIBUTE_NORETURNs Tom Tromey
2018-04-21 18:31 ` [RFA 9/9] Add -Wimplicit-fallthrough Tom Tromey
2018-05-04 18:34   ` Pedro Alves
2018-05-04 18:47     ` Tom Tromey
2018-04-21 18:31 ` [RFA 8/9] Add a missing break in record_linux_system_call Tom Tromey
2018-04-21 18:31 ` [RFA 3/9] Fix "obvious" fall-through warnings Tom Tromey
2018-04-21 18:31 ` [RFA 4/9] Add a fall-through comment to stabsread.c Tom Tromey
2018-04-21 18:31 ` [RFA 6/9] Add two fall-through comments in rs6000-tdep.c Tom Tromey
2018-04-21 18:31 ` [RFA 5/9] Add fall-through comment to i386-tdep.c Tom Tromey
2018-04-24 20:37   ` John Baldwin
2018-04-21 18:31 ` [RFA 7/9] Add missing "breaks" Tom Tromey
2018-04-21 18:31 ` [RFA 1/9] Fix "fall through" comments Tom Tromey
2018-05-04 17:51 ` [RFA 0/9] Enable -Wimplicit-fallthrough Pedro Alves

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