compiler: permit inlining functions with labels and goto statements
authorIan Lance Taylor <ian@gcc.gnu.org>
Mon, 10 Jun 2019 21:02:20 +0000 (21:02 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Mon, 10 Jun 2019 21:02:20 +0000 (21:02 +0000)
commitfc917b42658000f0c4dc87f6602336eef899fadf
treea86e9441caa7fe457bf8274f297f2267ad7a5f0a
parentd480455f2ddc3b89d8547969be9cda939c41da56
compiler: permit inlining functions with labels and goto statements

    This permits inlining functions with for loops and some switches, as
    they are lowered to if and goto statements before exporting them.

    This by itself only adds three new inlinable functions in the standard
    library: sort.Search, context.(*emptyCtx).String, and
    cmd/go/internal/work.(*Builder).disableBuildID.

    Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/181197

From-SVN: r272131
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/export.cc
gcc/go/gofrontend/export.h
gcc/go/gofrontend/import.cc
gcc/go/gofrontend/import.h
gcc/go/gofrontend/statements.cc
gcc/go/gofrontend/statements.h