]> git.ipfire.org Git - thirdparty/gcc.git/commit
compiler: permit inlining constant expressions and expression statements
authorIan Lance Taylor <ian@gcc.gnu.org>
Tue, 10 Sep 2019 02:37:42 +0000 (02:37 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 10 Sep 2019 02:37:42 +0000 (02:37 +0000)
commit5447e8e2e249a12b0f22ccfb171ccc8fff9fcadc
tree6035009eba3ff49350241fb098c94923426439f3
parent77df40e8127ec4f62c01c15f2d6f76d995424863
compiler: permit inlining constant expressions and expression statements

    This relatively minor change increases the number of inlinable
    functions/methods in the standard library from 983 to 2179.

    In particular it permits inlining math/bits/RotateLeftNN.  This
    restores the speed of crypto/sha256 back to what it was before the
    update to 1.13beta1.

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

From-SVN: r275558
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/expressions.cc
gcc/go/gofrontend/statements.cc
gcc/go/gofrontend/statements.h