re PR go/65353 (unknown ptrSize for $GOARCH "arm64" on aarch64-linux-gnu)
authorIan Lance Taylor <ian@gcc.gnu.org>
Tue, 10 Mar 2015 00:14:58 +0000 (00:14 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 10 Mar 2015 00:14:58 +0000 (00:14 +0000)
PR go/65353.
cmd/cgo: Add all gccgo GOARCH values to size maps.

From-SVN: r221293

libgo/go/cmd/cgo/main.go

index ea4b9c2c70db9943e8e6a55895d91e7640f6796c..48257fc6c4d581d017fff8ec5bd2dbd41e2434ab 100644 (file)
@@ -130,21 +130,43 @@ func usage() {
 }
 
 var ptrSizeMap = map[string]int64{
-       "386":   4,
-       "amd64": 8,
-       "arm":   4,
-       "ppc64": 8,
+       "386":     4,
+       "alpha":   8,
+       "amd64":   8,
+       "arm":     4,
+       "arm64":   8,
+       "m68k":    4,
+       "mipso32": 4,
+       "mipsn32": 4,
+       "mipso64": 8,
+       "mipsn64": 8,
+       "ppc":     4,
+       "ppc64":   8,
        "ppc64le": 8,
-       "s390x": 8,
+       "s390":    4,
+       "s390x":   8,
+       "sparc":   4,
+       "sparc64": 8,
 }
 
 var intSizeMap = map[string]int64{
-       "386":   4,
-       "amd64": 8,
-       "arm":   4,
-       "ppc64": 8,
+       "386":     4,
+       "alpha":   8,
+       "amd64":   8,
+       "arm":     4,
+       "arm64":   8,
+       "m68k":    4,
+       "mipso32": 4,
+       "mipsn32": 4,
+       "mipso64": 8,
+       "mipsn64": 8,
+       "ppc":     4,
+       "ppc64":   8,
        "ppc64le": 8,
-       "s390x": 8,
+       "s390":    4,
+       "s390x":   8,
+       "sparc":   4,
+       "sparc64": 8,
 }
 
 var cPrefix string