This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Implement -Wswitch-fallthrough: lto


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 get this correct by
> parsing comments...
 
Yea, seems that became a prerequisite for moving this forward.  Not sure if
I'll be able to manage that, but let me try what Jakub and David suggested
(turn the commend into a pragma).

> I don't like __builtin_fallthrough () too much.

Understood.

	Marek


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]