From 2623a412c42a81104b97ae8c81a5f66760fee4b6 Mon Sep 17 00:00:00 2001 From: Wim Date: Sat, 19 Mar 2022 22:04:13 +0100 Subject: Update vendor (whatsapp) --- vendor/modernc.org/cc/v3/abi_platforms.go | 55 ++++++++++++++++++++++++++----- 1 file changed, 47 insertions(+), 8 deletions(-) (limited to 'vendor/modernc.org/cc/v3/abi_platforms.go') diff --git a/vendor/modernc.org/cc/v3/abi_platforms.go b/vendor/modernc.org/cc/v3/abi_platforms.go index 24c8d762..b393c2da 100644 --- a/vendor/modernc.org/cc/v3/abi_platforms.go +++ b/vendor/modernc.org/cc/v3/abi_platforms.go @@ -5,17 +5,19 @@ import "encoding/binary" // abiByteOrders contains byte order information for known architectures. var ( abiByteOrders = map[string]binary.ByteOrder{ - "amd64": binary.LittleEndian, - "386": binary.LittleEndian, - "arm": binary.LittleEndian, - "arm64": binary.LittleEndian, - "s390x": binary.BigEndian, + "386": binary.LittleEndian, + "amd64": binary.LittleEndian, + "arm": binary.LittleEndian, + "arm64": binary.LittleEndian, + "riscv64": binary.LittleEndian, + "s390x": binary.BigEndian, } abiSignedChar = map[[2]string]bool{ - {"linux", "arm"}: false, - {"linux", "arm64"}: false, - {"linux", "s390x"}: false, + {"linux", "arm"}: false, + {"linux", "arm64"}: false, + {"linux", "s390x"}: false, + {"linux", "riscv64"}: false, {"darwin", "amd64"}: true, {"darwin", "arm64"}: true, @@ -487,4 +489,41 @@ var abiTypes = map[[2]string]map[Kind]ABIType{ Int128: {16, 16, 16}, UInt128: {16, 16, 16}, }, + // gcc (Ubuntu 11.2.0-7ubuntu2) 11.2.0 + {"linux", "riscv64"}: { + Void: {1, 1, 1}, + Bool: {1, 1, 1}, + Char: {1, 1, 1}, + SChar: {1, 1, 1}, + UChar: {1, 1, 1}, + Short: {2, 2, 2}, + UShort: {2, 2, 2}, + Enum: {4, 4, 4}, + Int: {4, 4, 4}, + UInt: {4, 4, 4}, + Long: {8, 8, 8}, + ULong: {8, 8, 8}, + LongLong: {8, 8, 8}, + ULongLong: {8, 8, 8}, + Ptr: {8, 8, 8}, + Function: {8, 8, 8}, + Float: {4, 4, 4}, + Double: {8, 8, 8}, + LongDouble: {16, 16, 16}, + Int8: {1, 1, 1}, + UInt8: {1, 1, 1}, + Int16: {2, 2, 2}, + UInt16: {2, 2, 2}, + Int32: {4, 4, 4}, + UInt32: {4, 4, 4}, + Int64: {8, 8, 8}, + UInt64: {8, 8, 8}, + Int128: {16, 16, 16}, + UInt128: {16, 16, 16}, + Float32: {4, 4, 4}, + Float32x: {8, 8, 8}, + Float64: {8, 8, 8}, + Float64x: {16, 16, 16}, + Float128: {16, 16, 16}, + }, } -- cgit v1.2.3