public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* libgo patch committed: It's OK to use cgo on PPC
@ 2015-03-12 16:41 Ian Lance Taylor
  2015-03-12 17:00 ` Matthias Klose
  0 siblings, 1 reply; 3+ messages in thread
From: Ian Lance Taylor @ 2015-03-12 16:41 UTC (permalink / raw)
  To: gcc-patches, gofrontend-dev

[-- Attachment #1: Type: text/plain, Size: 238 bytes --]

The cgo tool installed by gccgo works fine on 32-bit PPC.  This patch
notes that fact in the gccgo version of the go tool.  This is GCC PR
65404.  Bootstrapped and ran Go testsuite on x86_64-unknown-linux-gnu.
Committed to mainline.

Ian

[-- Attachment #2: foo.txt --]
[-- Type: text/plain, Size: 385 bytes --]

diff -r 81cc50c9140d libgo/go/go/build/build.go
--- a/libgo/go/go/build/build.go	Mon Mar 09 17:13:50 2015 -0700
+++ b/libgo/go/go/build/build.go	Thu Mar 12 09:32:03 2015 -0700
@@ -268,6 +268,7 @@
 	"linux/alpha":     true,
 	"linux/amd64":     true,
 	"linux/arm":       true,
+	"linux/ppc":       true,
 	"linux/ppc64":     true,
 	"linux/ppc64le":   true,
 	"linux/s390":      true,

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: libgo patch committed: It's OK to use cgo on PPC
  2015-03-12 16:41 libgo patch committed: It's OK to use cgo on PPC Ian Lance Taylor
@ 2015-03-12 17:00 ` Matthias Klose
  2015-03-12 17:05   ` Ian Lance Taylor
  0 siblings, 1 reply; 3+ messages in thread
From: Matthias Klose @ 2015-03-12 17:00 UTC (permalink / raw)
  To: Ian Lance Taylor, gcc-patches, gofrontend-dev

On 03/12/2015 05:41 PM, Ian Lance Taylor wrote:
> The cgo tool installed by gccgo works fine on 32-bit PPC.  This patch
> notes that fact in the gccgo version of the go tool.  This is GCC PR
> 65404.  Bootstrapped and ran Go testsuite on x86_64-unknown-linux-gnu.
> Committed to mainline.

same thing needs to be done for arm64:

From 391fba3b788628ef6431765c382a51f52a93cddf Mon Sep 17 00:00:00 2001
From: Michael Hudson-Doyle <michael.hudson@linaro.org>
Date: Wed, 27 Aug 2014 14:57:07 +1200
Subject: [PATCH 3/3] Enable cgo by default on linux/arm64.

---
 src/libgo/go/go/build/build.go | 1 +
 1 file changed, 1 insertion(+)

Index: b/src/libgo/go/go/build/build.go
===================================================================
--- a/src/libgo/go/go/build/build.go
+++ b/src/libgo/go/go/build/build.go
@@ -268,6 +268,7 @@ var cgoEnabled = map[string]bool{
        "linux/alpha":     true,
        "linux/amd64":     true,
        "linux/arm":       true,
+       "linux/arm64":     true,
        "linux/ppc64":     true,
        "linux/ppc64le":   true,
        "linux/s390":      true,


> 
> Ian
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: libgo patch committed: It's OK to use cgo on PPC
  2015-03-12 17:00 ` Matthias Klose
@ 2015-03-12 17:05   ` Ian Lance Taylor
  0 siblings, 0 replies; 3+ messages in thread
From: Ian Lance Taylor @ 2015-03-12 17:05 UTC (permalink / raw)
  To: Matthias Klose; +Cc: gcc-patches, gofrontend-dev

On Thu, Mar 12, 2015 at 10:00 AM, Matthias Klose <doko@ubuntu.com> wrote:
> On 03/12/2015 05:41 PM, Ian Lance Taylor wrote:
>> The cgo tool installed by gccgo works fine on 32-bit PPC.  This patch
>> notes that fact in the gccgo version of the go tool.  This is GCC PR
>> 65404.  Bootstrapped and ran Go testsuite on x86_64-unknown-linux-gnu.
>> Committed to mainline.
>
> same thing needs to be done for arm64:

Thanks.  Committed.

Ian

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-03-12 17:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-12 16:41 libgo patch committed: It's OK to use cgo on PPC Ian Lance Taylor
2015-03-12 17:00 ` Matthias Klose
2015-03-12 17:05   ` Ian Lance Taylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).