Implement -Wimplicit-fallthrough.
authorMarek Polacek <polacek@redhat.com>
Mon, 26 Sep 2016 09:42:50 +0000 (09:42 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Mon, 26 Sep 2016 09:42:50 +0000 (09:42 +0000)
commit81fea426da8c4687bb32e6894dc26f00ae211822
tree8b84b3de175727d09b7dcf1b5703e0d46b64f9e7
parent392fa55c799358e198ca85fbea548e60359133c5
Implement -Wimplicit-fallthrough.

Co-Authored-By: Jakub Jelinek <jakub@redhat.com>
From-SVN: r240485
83 files changed:
gcc/ChangeLog
gcc/Makefile.in
gcc/builtins.c
gcc/c-family/ChangeLog
gcc/c-family/c-common.c
gcc/c-family/c-common.h
gcc/c/ChangeLog
gcc/c/c-decl.c
gcc/c/c-parser.c
gcc/common.opt
gcc/config/rs6000/rs6000.c
gcc/convert.c
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/cp/constraint.cc
gcc/cp/parser.c
gcc/cp/pt.c
gcc/cp/semantics.c
gcc/cp/typeck.c
gcc/doc/extend.texi
gcc/doc/invoke.texi
gcc/final.c
gcc/fortran/ChangeLog
gcc/fortran/arith.c
gcc/fortran/frontend-passes.c
gcc/fortran/parse.c
gcc/fortran/primary.c
gcc/fortran/trans-array.c
gcc/fortran/trans-expr.c
gcc/fortran/trans-io.c
gcc/genattrtab.c
gcc/genpreds.c
gcc/gimple-ssa-strength-reduction.c
gcc/gimple.h
gcc/gimplify.c
gcc/godump.c
gcc/internal-fn.c
gcc/internal-fn.def
gcc/langhooks.c
gcc/langhooks.h
gcc/reload1.c
gcc/resource.c
gcc/system.h
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/Wimplicit-fallthrough-1.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/Wimplicit-fallthrough-10.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/Wimplicit-fallthrough-11.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/Wimplicit-fallthrough-12.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/Wimplicit-fallthrough-13.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/Wimplicit-fallthrough-14.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/Wimplicit-fallthrough-15.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/Wimplicit-fallthrough-16.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/Wimplicit-fallthrough-17.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/Wimplicit-fallthrough-18.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/Wimplicit-fallthrough-19.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/Wimplicit-fallthrough-2.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/Wimplicit-fallthrough-20.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/Wimplicit-fallthrough-21.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/Wimplicit-fallthrough-3.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/Wimplicit-fallthrough-4.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/Wimplicit-fallthrough-5.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/Wimplicit-fallthrough-6.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/Wimplicit-fallthrough-7.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/Wimplicit-fallthrough-8.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/Wimplicit-fallthrough-9.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/attr-fallthrough-1.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/attr-fallthrough-2.c [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/fallthrough1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/fallthrough2.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp1z/fallthrough1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/warn/Wunused-label-1.C
gcc/testsuite/gcc.dg/Wimplicit-fallthrough-1.c [new file with mode: 0644]
gcc/testsuite/obj-c++.dg/Wimplicit-fallthrough-1.mm [new file with mode: 0644]
gcc/testsuite/objc.dg/Wimplicit-fallthrough-1.m [new file with mode: 0644]
gcc/tree-core.h
gcc/tree-ssa-loop-ivopts.c
gcc/tree.h
gcc/varasm.c
libcpp/ChangeLog
libcpp/include/cpplib.h
libcpp/lex.c
libstdc++-v3/ChangeLog
libstdc++-v3/libsupc++/hash_bytes.cc