* libgo patch committed: Recognize arm64
@ 2014-01-06 19:25 Ian Lance Taylor
2014-01-15 15:24 ` Matthias Klose
0 siblings, 1 reply; 3+ messages in thread
From: Ian Lance Taylor @ 2014-01-06 19:25 UTC (permalink / raw)
To: gcc-patches, gofrontend-dev
[-- Attachment #1: Type: text/plain, Size: 199 bytes --]
This libgo patch from Michael Hudson-Doyle recognizes arm64 as the Go
name for the AArch64 architecture. Bootstrapped and ran Go testsuite on
x86_64-unknown-linux-gnu. Committed to mainline.
Ian
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: patch --]
[-- Type: text/x-diff, Size: 2602 bytes --]
diff -r 070005ab99f5 libgo/configure.ac
--- a/libgo/configure.ac Sun Jan 05 19:00:53 2014 -0800
+++ b/libgo/configure.ac Mon Jan 06 11:13:23 2014 -0800
@@ -174,6 +174,7 @@
is_386=no
is_alpha=no
is_arm=no
+is_arm64=no
is_m68k=no
mips_abi=unknown
is_ppc=no
@@ -187,6 +188,10 @@
is_alpha=yes
GOARCH=alpha
;;
+ aarch64-*-*)
+ is_arm64=yes
+ GOARCH=arm64
+ ;;
arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*)
is_arm=yes
GOARCH=arm
@@ -267,6 +272,7 @@
AM_CONDITIONAL(LIBGO_IS_386, test $is_386 = yes)
AM_CONDITIONAL(LIBGO_IS_ALPHA, test $is_alpha = yes)
AM_CONDITIONAL(LIBGO_IS_ARM, test $is_arm = yes)
+AM_CONDITIONAL(LIBGO_IS_ARM64, test $is_arm64 = yes)
AM_CONDITIONAL(LIBGO_IS_M68K, test $is_m68k = yes)
AM_CONDITIONAL(LIBGO_IS_MIPS, test $mips_abi != unknown)
AM_CONDITIONAL(LIBGO_IS_MIPSO32, test $mips_abi = o32)
diff -r 070005ab99f5 libgo/go/go/build/build.go
--- a/libgo/go/go/build/build.go Sun Jan 05 19:00:53 2014 -0800
+++ b/libgo/go/go/build/build.go Mon Jan 06 11:13:23 2014 -0800
@@ -1211,6 +1211,8 @@
return "6", nil
case "arm":
return "5", nil
+ case "arm64":
+ return "7", nil
}
return "", errors.New("unsupported GOARCH " + goarch)
}
diff -r 070005ab99f5 libgo/go/go/build/deps_test.go
--- a/libgo/go/go/build/deps_test.go Sun Jan 05 19:00:53 2014 -0800
+++ b/libgo/go/go/build/deps_test.go Mon Jan 06 11:13:23 2014 -0800
@@ -360,7 +360,7 @@
var bools = []bool{false, true}
var geese = []string{"darwin", "dragonfly", "freebsd", "linux", "netbsd", "openbsd", "plan9", "windows"}
-var goarches = []string{"386", "amd64", "arm"}
+var goarches = []string{"386", "amd64", "arm", "arm64"}
type osPkg struct {
goos, pkg string
diff -r 070005ab99f5 libgo/go/go/build/syslist.go
--- a/libgo/go/go/build/syslist.go Sun Jan 05 19:00:53 2014 -0800
+++ b/libgo/go/go/build/syslist.go Mon Jan 06 11:13:23 2014 -0800
@@ -5,4 +5,4 @@
package build
const goosList = "darwin dragonfly freebsd linux netbsd openbsd plan9 windows solaris "
-const goarchList = "386 amd64 arm alpha m68k mipso32 mipsn32 mipsn64 mipso64 ppc ppc64 sparc sparc64 "
+const goarchList = "386 amd64 arm arm64 alpha m68k mipso32 mipsn32 mipsn64 mipso64 ppc ppc64 sparc sparc64 "
diff -r 070005ab99f5 libgo/go/runtime/extern.go
--- a/libgo/go/runtime/extern.go Sun Jan 05 19:00:53 2014 -0800
+++ b/libgo/go/runtime/extern.go Mon Jan 06 11:13:23 2014 -0800
@@ -185,5 +185,5 @@
const GOOS string = theGoos
// GOARCH is the running program's architecture target:
-// 386, amd64, or arm.
+// 386, amd64, arm or arm64.
const GOARCH string = theGoarch
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: libgo patch committed: Recognize arm64
2014-01-06 19:25 libgo patch committed: Recognize arm64 Ian Lance Taylor
@ 2014-01-15 15:24 ` Matthias Klose
2014-01-15 15:29 ` Ian Lance Taylor
0 siblings, 1 reply; 3+ messages in thread
From: Matthias Klose @ 2014-01-15 15:24 UTC (permalink / raw)
To: Ian Lance Taylor, gcc-patches, gofrontend-dev
[-- Attachment #1: Type: text/plain, Size: 341 bytes --]
Am 06.01.2014 20:24, schrieb Ian Lance Taylor:
> This libgo patch from Michael Hudson-Doyle recognizes arm64 as the Go
> name for the AArch64 architecture. Bootstrapped and ran Go testsuite on
> x86_64-unknown-linux-gnu. Committed to mainline.
this missed the one reference to the goarch in the gcc testsuite. Ok to commit?
Matthias
[-- Attachment #2: goarch.diff --]
[-- Type: text/plain, Size: 514 bytes --]
gcc/testsuite/
2014-01-15 Matthias Klose <doko@ubuntu.com>
* go.test/go-test.exp: Set goarch for aarch64*-*-*.
Index: gcc/testsuite/go.test/go-test.exp
===================================================================
--- gcc/testsuite/go.test/go-test.exp (revision 206629)
+++ gcc/testsuite/go.test/go-test.exp (working copy)
@@ -187,6 +187,9 @@
global target_triplet
switch -glob $target_triplet {
+ "aarch64*-*-*" {
+ set goarch "arm64"
+ }
"alpha*-*-*" {
set goarch "alpha"
}
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: libgo patch committed: Recognize arm64
2014-01-15 15:24 ` Matthias Klose
@ 2014-01-15 15:29 ` Ian Lance Taylor
0 siblings, 0 replies; 3+ messages in thread
From: Ian Lance Taylor @ 2014-01-15 15:29 UTC (permalink / raw)
To: Matthias Klose; +Cc: gcc-patches, gofrontend-dev
On Wed, Jan 15, 2014 at 7:24 AM, Matthias Klose <doko@debian.org> wrote:
> Am 06.01.2014 20:24, schrieb Ian Lance Taylor:
>> This libgo patch from Michael Hudson-Doyle recognizes arm64 as the Go
>> name for the AArch64 architecture. Bootstrapped and ran Go testsuite on
>> x86_64-unknown-linux-gnu. Committed to mainline.
>
> this missed the one reference to the goarch in the gcc testsuite. Ok to commit?
Yes, thanks.
Ian
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-01-15 15:29 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-06 19:25 libgo patch committed: Recognize arm64 Ian Lance Taylor
2014-01-15 15:24 ` Matthias Klose
2014-01-15 15:29 ` 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).