]> git.ipfire.org Git - thirdparty/gcc.git/commit
runtime: export cgoCheck functions
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 2 Dec 2017 00:46:00 +0000 (00:46 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 2 Dec 2017 00:46:00 +0000 (00:46 +0000)
commitba2d9df3b6dcd4a407de37555865eb04835fcf38
treed493104ca59804fbe820b492ad9b9be9ec0ea2d1
parent8ac0f7677f9a317c9dee0168313fc411b3745f78
runtime: export cgoCheck functions

    The functions cgoCheckPointer and cgoCheckResult are called by code
    generated by cgo. That means that we need to export them using
    go:linkname, as otherwise they are local symbols. The cgo code
    currently uses weak references to only call the symbols if they are
    defined, which is why it has been working--the cgo code has not been
    doing any checks.

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@255347 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/go/gofrontend/MERGE
libgo/go/runtime/cgocall.go