]> git.ipfire.org Git - thirdparty/gcc.git/commit
compiler: inline call expressions and function references
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 5 Jun 2019 21:05:38 +0000 (21:05 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 5 Jun 2019 21:05:38 +0000 (21:05 +0000)
commite3d09834af8b8121723dd725d6518b7d6657b1af
treed2b034aeb5116f43b6724b61e017131a3bc64a9c
parente11ce677187fca0fc268e2e8a2bc293dbccc0e97
compiler: inline call expressions and function references

    Scan inlinable methods for references to global variables and
    functions (forgot to do that earlier).

    Track all packages mentioned by exports (that should have been done
    earlier too).

    Record assembler name in export data, so that we can inline calls to
    non-Go functions.  Modify gccgoimporter code to skip assembler name.

    This increases the number of inlinable functions in the standard
    library from 215 to 439.

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@271976 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/export.cc
gcc/go/gofrontend/expressions.cc
gcc/go/gofrontend/expressions.h
gcc/go/gofrontend/gogo.cc
gcc/go/gofrontend/gogo.h
gcc/go/gofrontend/import.cc
libgo/go/go/internal/gccgoimporter/parser.go