This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch RFA: Support for building Go tools
- From: pinskia at gmail dot com
- To: Ian Lance Taylor <iant at golang dot org>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>, "gofrontend-dev at googlegroups dot com" <gofrontend-dev at googlegroups dot com>, Lynn Boger <laboger at linux dot vnet dot ibm dot com>
- Date: Thu, 8 Jan 2015 13:51:37 -0800
- Subject: Re: Patch RFA: Support for building Go tools
- Authentication-results: sourceware.org; auth=none
- References: <CAOyqgcWgZpaX=7DNvKEH17oX8dwYucj1huz8i8C4pidBd4tu5Q at mail dot gmail dot com>
> On Jan 8, 2015, at 1:35 PM, Ian Lance Taylor <iant@golang.org> wrote:
>
> This patch adds support to the GCC tree for building tools that are
> used with Go. There are two external used tools (go, gofmt) and one
> tool used internally by go (cgo). This patch is pure machinery, with
> no source code. The tools are not built by default, only when go is
> enabled using --enable-languages. For the moment the tools are also
> not built when building a cross-compiler, although I hope to change
> that when I figure out what is needed.
When you add support for cross, please also make sure that Canadian cross works too.
Thanks,
Andrew
>
> The tools work just as they do when built for the gc compiler, only
> they use gccgo instead of gc. For documentation on these tools and
> what they do see http://golang.org/cmd/go ,
> http://golang.org/cmd/gofmt , http://golang.org/cmd/cgo .
>
> This patch parallels the mechanism used in the existing gnattools
> directory for building Ada tools.
>
> Could the build machinery maintainers please take a look and let me
> know if this is OK? Thanks.
>
> Lynn, please also take a look and see if this works for you.
>
> The first attachment is the real changes for review. The second
> attachment is a compressed patch for the generated files, for
> convenience for anybody who wants to try this out.
>
> Ian
> <foo.txt>
> <foo1.txt.bz2>