[PATCH] Begin implementing Plan 9 C extensions.

Richard Smith richard at metafoo.co.uk
Tue May 27 15:25:16 PDT 2014


On Tue, May 20, 2014 at 4:11 PM, Peter Collingbourne <peter at pcc.me.uk>wrote:

> 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.)


How much else is there, beyond this? From the documentation above, it seems
this covers the majority of the features.

I'm not overjoyed by the churn of adding a (very rare) flag to FieldDecl to
support this, but there's no point digging into the details here if you're
not yet sure that you want to pursue this.


> > 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
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140527/9a310f9c/attachment.html>


More information about the cfe-commits mailing list