[PATCH] Begin implementing Plan 9 C extensions.

Peter Collingbourne peter at pcc.me.uk
Tue May 20 16:11:51 PDT 2014


On Tue, May 20, 2014 at 03:12:08PM -0700, Nico Weber wrote:
> On Tue, May 20, 2014 at 2:53 PM, Peter Collingbourne <peter at pcc.me.uk>wrote:
> 
> > On Tue, May 20, 2014 at 09:21:38PM +0000, Nico Weber wrote:
> > > Is there a list of extensions you want to support?
> >
> > I want to implement the unnamed substructure extension (section 3.3 here:
> > http://plan9.bell-labs.com/sys/doc/compiler.html). As far as I know, that
> > is the only other extension required for the Go standard library.
> >
> 
> Hm, that doesn't sound so bad.
> 
> Do you happen to have a complete diff for all the changes you want to make
> that you could put somewhere? It sounds like it would be relatively small.

I have unnamed substructures implemented (attached). No docs or tests yet,
though it does allow me to compile the Go standard library. (It is in fact
a relatively large diff, but most of it is boilerplate changes.)

> What are the odds of the go standard library depending on more plan9 stuff
> over time?

I don't know. But I hope it wouldn't go much beyond what GCC already implements
(namely, unnamed substructures).

> > > Could the go standard library not use plan9 extensions, if it's
> > interested
> > > in being compiled with more than 1 compiler?
> >
> > I don't know how receptive the Go folks would be to that.
> 
> 
> Have you asked?

I haven't. I should probably do that.

Thanks,
-- 
Peter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: plan9c.diff
Type: text/x-diff
Size: 46464 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140520/8727a7be/attachment.diff>


More information about the cfe-commits mailing list