1
# DP: Introduce the arm64 goarch.
3
Index: b/src/gcc/testsuite/go.test/go-test.exp
4
===================================================================
5
--- a/src/gcc/testsuite/go.test/go-test.exp
6
+++ b/src/gcc/testsuite/go.test/go-test.exp
7
@@ -172,6 +172,9 @@ proc go-set-goarch { } {
10
switch -glob $target_triplet {
17
Index: b/src/libgo/configure.ac
18
===================================================================
19
--- a/src/libgo/configure.ac
20
+++ b/src/libgo/configure.ac
21
@@ -171,6 +171,7 @@ dnl N.B. Keep in sync with gcc/testsuite
29
@@ -184,6 +185,10 @@ case ${host} in
37
arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*)
40
@@ -264,6 +269,7 @@ esac
41
AM_CONDITIONAL(LIBGO_IS_386, test $is_386 = yes)
42
AM_CONDITIONAL(LIBGO_IS_ALPHA, test $is_alpha = yes)
43
AM_CONDITIONAL(LIBGO_IS_ARM, test $is_arm = yes)
44
+AM_CONDITIONAL(LIBGO_IS_ARM64, test $is_arm64 = yes)
45
AM_CONDITIONAL(LIBGO_IS_M68K, test $is_m68k = yes)
46
AM_CONDITIONAL(LIBGO_IS_MIPS, test $mips_abi != unknown)
47
AM_CONDITIONAL(LIBGO_IS_MIPSO32, test $mips_abi = o32)
48
Index: b/src/libgo/go/go/build/build.go
49
===================================================================
50
--- a/src/libgo/go/go/build/build.go
51
+++ b/src/libgo/go/go/build/build.go
52
@@ -1118,6 +1118,8 @@ func ArchChar(goarch string) (string, er
59
return "", errors.New("unsupported GOARCH " + goarch)
61
Index: b/src/libgo/go/go/build/deps_test.go
62
===================================================================
63
--- a/src/libgo/go/go/build/deps_test.go
64
+++ b/src/libgo/go/go/build/deps_test.go
65
@@ -360,7 +360,7 @@ func allowed(pkg string) map[string]bool
67
var bools = []bool{false, true}
68
var geese = []string{"darwin", "freebsd", "linux", "netbsd", "openbsd", "plan9", "windows"}
69
-var goarches = []string{"386", "amd64", "arm"}
70
+var goarches = []string{"386", "amd64", "arm", "arm64"}
74
Index: b/src/libgo/go/go/build/syslist.go
75
===================================================================
76
--- a/src/libgo/go/go/build/syslist.go
77
+++ b/src/libgo/go/go/build/syslist.go
81
const goosList = "darwin dragonfly freebsd linux netbsd openbsd plan9 windows solaris "
82
-const goarchList = "386 amd64 arm alpha m68k mipso32 mipsn32 mipsn64 mipso64 ppc ppc64 sparc sparc64 "
83
+const goarchList = "386 amd64 arm arm64 alpha m68k mipso32 mipsn32 mipsn64 mipso64 ppc ppc64 sparc sparc64 "
84
Index: b/src/libgo/go/runtime/extern.go
85
===================================================================
86
--- a/src/libgo/go/runtime/extern.go
87
+++ b/src/libgo/go/runtime/extern.go
88
@@ -170,5 +170,5 @@ func Version() string {
89
const GOOS string = theGoos
91
// GOARCH is the running program's architecture target:
92
-// 386, amd64, or arm.
93
+// 386, amd64, arm or arm64.
94
const GOARCH string = theGoarch