compiler: annotate or fix fall through cases in switch statements
authorIan Lance Taylor <ian@gcc.gnu.org>
Wed, 10 Aug 2016 18:56:35 +0000 (18:56 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Wed, 10 Aug 2016 18:56:35 +0000 (18:56 +0000)
commit4cc1fc4f9eefdfdae09ecb7f4cff9a284b1b4e8b
treef0af15a57dfdab3f9e66d033ad33fdf6825291c0
parent5a02adf63e73d0894b72f13505a4a7e6d154ea20
compiler: annotate or fix fall through cases in switch statements

    A new GCC warning, -Wimplicit-fallthrough, detected these three cases
    where a switch case falls through to another.  One of them looks like
    a bug, so I fixed it; the two other look like intended fall throughs
    so I just added a "fall through" comment to suppress the GCC warning.

    Bootstrapped and ran Go testsuite on x86_64-pc-linux-gnu.

    Reviewed-on: https://go-review.googlesource.com/26695

From-SVN: r239332
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/escape.cc
gcc/go/gofrontend/expressions.cc