This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [gofrontend-dev] Go patch committed: Implement method values in reflect package
- From: Michael Hudson-Doyle <michael dot hudson at linaro dot org>
- To: Ian Lance Taylor <iant at google dot com>, gcc-patches at gcc dot gnu dot org, gofrontend-dev at googlegroups dot com
- Date: Thu, 12 Dec 2013 21:21:14 +1300
- Subject: Re: [gofrontend-dev] Go patch committed: Implement method values in reflect package
- Authentication-results: sourceware.org; auth=none
- References: <mcry53qj2nk dot fsf at iant-glaptop dot roam dot corp dot google dot com>
Ian Lance Taylor <iant@google.com> writes:
> This patch to the Go frontend and libgo implements method values in the
> reflect package. Working with method values and reflect now works
> correctly, at least on x86.
Can you give me a test case? I can try it on a few other architectures
tomorrow.
Cheers,
mwh
> This changes the type signature for type methods in the reflect
> package to match the gc compiler. That in turn required changing the
> reflect package to mark method values with a new flag, as previously
> they were detected by the type signature. The MakeFunc support needed
> to create a function that takes a value and passes a pointer to the
> method, since all methods take pointers. It also needed to create a
> function that holds a receiver value. And the recover code needed to
> handle these new cases. Bootstrapped and ran Go testsuite on
> x86_64-unknown-linux-gnu. Committed to mainline and 4.8 branch.
>
> Ian