diff options
author | Dmitri Goutnik <dgoutnik@gmail.com> | 2022-05-20 08:07:03 -0500 |
---|---|---|
committer | Gopher Robot <gobot@golang.org> | 2022-06-09 19:31:37 +0000 |
commit | 2cfbef438049fd4c3f73d1562773ad1f93900897 (patch) | |
tree | 0fc62ebb807e27e8b784f7e5408af7b53104675e | |
parent | c7ccabf3fea67f002bef190a5ffc7417f4371a23 (diff) | |
download | go1.19beta1.tar.gz go1.19beta1.zip |
cmd/cgo: recognize clang 14 DWARF type namesgo1.19beta1
Fixes #53013
Change-Id: I169d4eb2420a6da52cc9abe17da98c3092a91be6
Reviewed-on: https://go-review.googlesource.com/c/go/+/407514
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
-rw-r--r-- | src/cmd/cgo/gcc.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cmd/cgo/gcc.go b/src/cmd/cgo/gcc.go index 4d1a5bd8de..8ce5d4de73 100644 --- a/src/cmd/cgo/gcc.go +++ b/src/cmd/cgo/gcc.go @@ -2242,6 +2242,8 @@ var dwarfToName = map[string]string{ "long long unsigned int": "ulonglong", "signed char": "schar", "unsigned char": "uchar", + "unsigned long": "ulong", // Used by Clang 14; issue 53013. + "unsigned long long": "ulonglong", // Used by Clang 14; issue 53013. } const signedDelta = 64 |