From 1c1f0c595b4f0c8a53a21e3c6c752cd99f41263a Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 10 Mar 2015 00:14:58 +0000 Subject: [PATCH] re PR go/65353 (unknown ptrSize for $GOARCH "arm64" on aarch64-linux-gnu) PR go/65353. cmd/cgo: Add all gccgo GOARCH values to size maps. From-SVN: r221293 --- libgo/go/cmd/cgo/main.go | 42 ++++++++++++++++++++++++++++++---------- 1 file changed, 32 insertions(+), 10 deletions(-) diff --git a/libgo/go/cmd/cgo/main.go b/libgo/go/cmd/cgo/main.go index ea4b9c2c70d..48257fc6c4d 100644 --- a/libgo/go/cmd/cgo/main.go +++ b/libgo/go/cmd/cgo/main.go @@ -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 -- 2.30.2