Re: Implement -Wswitch-fallthrough: lto

2016-07-12 Thread Marek Polacek
On Tue, Jul 12, 2016 at 12:22:55PM +0200, Richard Biener wrote: > > @@ -254,6 +260,7 @@ parse_table_entry (char *p, struct ld_plugin_symbol > > *entry, > > break; > > } > > /* FALL-THROUGH. */ > > +lto_fallthrough (); > > This shows me that it would be nice to simply g

Re: Implement -Wswitch-fallthrough: lto

2016-07-12 Thread Richard Biener
On Mon, Jul 11, 2016 at 9:58 PM, Marek Polacek wrote: > 2016-07-11 Marek Polacek > > PR c/7652 > * lto-plugin.c (lto_fallthrough): Define. > (parse_table_entry): Use it. > > diff --git gcc/lto-plugin/lto-plugin.c gcc/lto-plugin/lto-plugin.c > index 51afc52..ffdf54a 10064

Re: Implement -Wswitch-fallthrough: lto

2016-07-11 Thread Marek Polacek
2016-07-11 Marek Polacek PR c/7652 * lto-plugin.c (lto_fallthrough): Define. (parse_table_entry): Use it. diff --git gcc/lto-plugin/lto-plugin.c gcc/lto-plugin/lto-plugin.c index 51afc52..ffdf54a 100644 --- gcc/lto-plugin/lto-plugin.c +++ gcc/lto-plugin/lto-plugin.c @@