Patch RFA: Support for building Go tools

Uros Bizjak ubizjak@gmail.com
Wed Jan 14 19:30:00 GMT 2015


Hello!

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

Attached is the patch that enables gotools on alpha/linux.

Tested on alpha-linux-gnu, cgo, go and gofmt executables run without problems.

Uros.

--cut here--
Index: go/go/build/build.go
===================================================================
--- go/go/build/build.go        (revision 219515)
+++ go/go/build/build.go        (working copy)
@@ -266,6 +266,7 @@ var cgoEnabled = map[string]bool{
        "freebsd/amd64":   true,
        "freebsd/arm":     true,
        "linux/386":       true,
+       "linux/alpha":     true,
        "linux/amd64":     true,
        "linux/arm":       true,
        "linux/ppc64":     true,
--cut here--



More information about the Gcc-patches mailing list