compiler: typing fixes for Interface_mtable_expression
authorIan Lance Taylor <ian@gcc.gnu.org>
Tue, 6 Jun 2017 20:57:03 +0000 (20:57 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 6 Jun 2017 20:57:03 +0000 (20:57 +0000)
commitf788537d682b78a5496276da4e35c8462317175f
treeebc21445074d9318af7561d390a57dd6c06bd2ad
parentbbf974160054c4b8aa3f0f49084bb46521195a51
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

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