Re: Implement -Wimplicit-fallthrough (version 8): add gcc_fallthrough()

2016-09-01 Thread Jakub Jelinek
On Thu, Sep 01, 2016 at 04:51:37PM +0200, Marek Polacek wrote: > I thought I'd keep it since it conveys something more than a pure "falls > through" comments, but I changed it anyway. Here's the pure comment > changes patch which I hope can be committed right away. > > 2016-09-01 Marek Polacek

Re: Implement -Wimplicit-fallthrough (version 8): add gcc_fallthrough()

2016-09-01 Thread Marek Polacek
On Thu, Sep 01, 2016 at 04:27:01PM +0200, Jakub Jelinek wrote: > On Thu, Sep 01, 2016 at 03:42:12PM +0200, Marek Polacek wrote: > > --- gcc/gcc/c-family/c-common.c > > +++ gcc/gcc/c-family/c-common.c > > @@ -11590,6 +11590,7 @@ resolve_overloaded_builtin (location_t loc, tree > > function, > >

Re: Implement -Wimplicit-fallthrough (version 8): add gcc_fallthrough()

2016-09-01 Thread Jakub Jelinek
On Thu, Sep 01, 2016 at 03:42:12PM +0200, Marek Polacek wrote: > --- gcc/gcc/c-family/c-common.c > +++ gcc/gcc/c-family/c-common.c > @@ -11590,6 +11590,7 @@ resolve_overloaded_builtin (location_t loc, tree > function, > gcc_unreachable (); > } > /* Fallthrough to the normal p

Implement -Wimplicit-fallthrough (version 8): add gcc_fallthrough()

2016-09-01 Thread Marek Polacek
Tobias pointed out that I need to add a new gcc_fallthrough into trans-io.c, so done. Bootstrapped/regtested on x86_64-linux and ppc64-linux. 2016-08-31 Marek Polacek PR c/7652 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn, insn-latencytab.o-warn, insn-output.