runtime: recreate function called by cgo -gccgo
commit84efd5236a882ce3dcc9617cb97cd54004f626a9
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 1 Nov 2016 14:07:43 +0000 (1 14:07 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 1 Nov 2016 14:07:43 +0000 (1 14:07 +0000)
treebdab38bdf1e983238d837d86f35cbba75f56a769
parent6a192a8f5146a39ed59bad30892d3ae30f62dde9
runtime: recreate function called by cgo -gccgo

    When using cgo -gccgo calls to C.GoString, C.GoStringN, and C.GoBytes
    are turned into calls to __go_byte_array_to_string and
    __go_string_to_byte_array.  Those functions were removed when the string
    code was copied from Go 1.7, but we still need them for cgo.  While cgo
    should be updated, old versions will exist for some time.

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

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