]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/go/gofrontend/expressions.cc
compiler: typing fixes for Interface_mtable_expression
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 6 Jun 2017 20:57:03 +0000 (20:57 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 6 Jun 2017 20:57:03 +0000 (20:57 +0000)
commitdb122cb9f301a8659577c928622f113e4ae536e0
treeebc21445074d9318af7561d390a57dd6c06bd2ad
parent4792273361107396cc9678301de9af3f62aba5d4
compiler: typing fixes for Interface_mtable_expression

    Interface_mtable_expression::do_type computes a type that incorporates
    Go type descriptors for the interface methods, whereas in order to
    have strict type agreement with the mtable data, the interface method
    fields need to be C function ptrs. Change the type recipe accordingly,
    and then update Interface_mtable_expression::do_get_backend to compute
    a revised backend type that uses the correct fcn types.

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@248934 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/expressions.cc
gcc/go/gofrontend/expressions.h