]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: added mips64{,le} build tags and GOARCH cases
authorYao Zhang <lunaria21@gmail.com>
Wed, 23 Sep 2015 22:58:05 +0000 (18:58 -0400)
committerMinux Ma <minux@golang.org>
Thu, 12 Nov 2015 04:47:42 +0000 (04:47 +0000)
Change-Id: I381c03d957a0dccae5f655f02e92760e5c0e9629
Reviewed-on: https://go-review.googlesource.com/14929
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Minux Ma <minux@golang.org>
src/runtime/cputicks.go
src/runtime/gcinfo_test.go
src/runtime/hash64.go
src/runtime/noasm.go
src/runtime/runtime-gdb_test.go
src/runtime/unaligned2.go

index 162e026b29659c046606fd44bfd9ecf0ef5ead2e..f5a60e66c1968775de1356ad936a5e3f7cca6379 100644 (file)
@@ -4,6 +4,8 @@
 
 // +build !arm
 // +build !arm64
+// +build !mips64
+// +build !mips64le
 
 package runtime
 
index f330bf2430ef6cf1ab7e41c7b9dad34153371d2c..edb63616429d74953f1c3a4a9fcf174aa5af7d6f 100644 (file)
@@ -144,7 +144,7 @@ func infoBigStruct() []byte {
                        typeScalar, typeScalar, typeScalar, typeScalar, // t int; y uint16; u uint64
                        typePointer, typeScalar, // i string
                }
-       case "arm64", "amd64", "ppc64", "ppc64le":
+       case "arm64", "amd64", "mips64", "mips64le", "ppc64", "ppc64le":
                return []byte{
                        typePointer,                        // q *int
                        typeScalar, typeScalar, typeScalar, // w byte; e [17]byte
index f339a3020e646dde41061069cdbc09827a6e6e96..fb3dba40004cdf7fb0955357b571a3dfb6cdb09a 100644 (file)
@@ -6,7 +6,7 @@
 //   xxhash: https://code.google.com/p/xxhash/
 // cityhash: https://code.google.com/p/cityhash/
 
-// +build amd64 amd64p32 arm64 ppc64 ppc64le
+// +build amd64 amd64p32 arm64 mips64 mips64le ppc64 ppc64le
 
 package runtime
 
index 30fa31c3abbbde69f8baacb92f38e4a35000b04c..351e325f4f2f5e6ab632f40cda62e5570e0ae532 100644 (file)
@@ -4,7 +4,7 @@
 
 // Routines that are implemented in assembly in asm_{amd64,386,arm,arm64,ppc64x}.s
 
-// +build ignore
+// +build mips64 mips64le
 
 package runtime
 
index 2843633ee13341d62307abb72d8d9667f1e9c0ff..3c045713afd1637b27a366c8e5de7e977ef46a18 100644 (file)
@@ -103,7 +103,7 @@ func TestGdbPython(t *testing.T) {
        // stack frames on RISC architectures.
        canBackTrace := false
        switch runtime.GOARCH {
-       case "amd64", "386", "ppc64", "ppc64le", "arm", "arm64":
+       case "amd64", "386", "ppc64", "ppc64le", "arm", "arm64", "mips64", "mips64le":
                canBackTrace = true
                args = append(args,
                        "-ex", "echo BEGIN goroutine 2 bt\n",
index 4fc7917662d3f1d5b43832bef0f0444497b68599..1ec1d166e447f494c39e354e9513b99421659aa9 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// +build arm ppc64 ppc64le
+// +build arm ppc64 ppc64le mips64 mips64le
 
 package runtime