Skip to content

Commit e727f41

Browse files
dmgkheschi
authored andcommitted
[release-branch.go1.18] cmd/cgo: recognize clang 14 DWARF type names
Fixes #57028 Updates #53013 Change-Id: I169d4eb2420a6da52cc9abe17da98c3092a91be6 Reviewed-on: https://go-review.googlesource.com/c/go/+/407514 Auto-Submit: Ian Lance Taylor <[email protected]> Reviewed-by: Cherry Mui <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> Run-TryBot: Ian Lance Taylor <[email protected]> TryBot-Result: Gopher Robot <[email protected]> (cherry picked from commit 2cfbef4) Reviewed-on: https://go-review.googlesource.com/c/go/+/454415 Reviewed-by: Dmitri Shuralyov <[email protected]> Run-TryBot: Heschi Kreinick <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]>
1 parent 3115ed2 commit e727f41

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/cmd/cgo/gcc.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2215,6 +2215,8 @@ var dwarfToName = map[string]string{
22152215
"long long unsigned int": "ulonglong",
22162216
"signed char": "schar",
22172217
"unsigned char": "uchar",
2218+
"unsigned long": "ulong", // Used by Clang 14; issue 53013.
2219+
"unsigned long long": "ulonglong", // Used by Clang 14; issue 53013.
22182220
}
22192221

22202222
const signedDelta = 64

0 commit comments

Comments
 (0)