1
0
mirror of https://github.com/golang/go synced 2024-11-25 13:38:00 -07:00
go/src/cmd
Ian Lance Taylor c209892905 cmd/cgo: correct padding required by alignment
If the aligned offset isn't sufficient for the field offset,
we were padding based on the aligned offset. We need to pad
based on the original offset instead.

Also set the Go alignment correctly for int128. We were defaulting
to the maximum alignment, but since we translate int128 into an
array of uint8 the correct Go alignment is 1.

Fixes #69086

Change-Id: I23ce583335c81beac2ac51f7f9336ac97ccebf09
Reviewed-on: https://go-review.googlesource.com/c/go/+/608815
Reviewed-by: Damien Neil <dneil@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Auto-Submit: Ian Lance Taylor <iant@golang.org>
2024-08-30 19:17:50 +00:00
..
addr2line cmd/internal: separate counter package from telemetry package 2024-06-21 19:58:04 +00:00
api cmd/api: handle types.Alias 2024-04-09 20:48:51 +00:00
asm cmd/internal/obj/loong64: add support for instructions BSTRPICK.{W/D} and BSTRINS.{W/D} 2024-08-23 00:53:08 +00:00
buildid cmd/internal: separate counter package from telemetry package 2024-06-21 19:58:04 +00:00
cgo cmd/cgo: correct padding required by alignment 2024-08-30 19:17:50 +00:00
compile cmd/compile/internal/noder: write V2 bitstream aliastypeparams=1 2024-08-28 21:03:29 +00:00
covdata cmd/internal: separate counter package from telemetry package 2024-06-21 19:58:04 +00:00
cover cmd/internal: separate counter package from telemetry package 2024-06-21 19:58:04 +00:00
dist cmd/dist: update tryDirs list to match make scripts 2024-08-27 17:23:37 +00:00
distpack misc/wasm: move wasm runtime files to lib/wasm 2024-08-30 19:15:21 +00:00
doc cmd/internal: separate counter package from telemetry package 2024-06-21 19:58:04 +00:00
fix cmd/internal: separate counter package from telemetry package 2024-06-21 19:58:04 +00:00
go misc/wasm: move wasm runtime files to lib/wasm 2024-08-30 19:15:21 +00:00
gofmt cmd/internal: separate counter package from telemetry package 2024-06-21 19:58:04 +00:00
internal cmd/internal/obj/loong64: add support for instructions BSTRPICK.{W/D} and BSTRINS.{W/D} 2024-08-23 00:53:08 +00:00
link cmd/link: support wasmexport on js/wasm 2024-08-21 01:11:27 +00:00
nm cmd/internal: separate counter package from telemetry package 2024-06-21 19:58:04 +00:00
objdump cmd/objdump: add s390x GNU disasm support 2024-08-21 20:01:18 +00:00
pack cmd/internal: separate counter package from telemetry package 2024-06-21 19:58:04 +00:00
pprof cmd/internal: separate counter package from telemetry package 2024-06-21 19:58:04 +00:00
preprofile cmd/internal: separate counter package from telemetry package 2024-06-21 19:58:04 +00:00
relnote cmd/relnote: fix API relnote check 2024-02-05 16:31:53 +00:00
test2json cmd/internal: separate counter package from telemetry package 2024-06-21 19:58:04 +00:00
tools
trace cmd/trace: merge testdata debugging tools into the trace tool 2024-07-23 14:57:42 +00:00
vendor cmd: vendor golang.org/x/telemetry@a797f33 2024-08-29 14:37:27 +00:00
vet cmd/internal: separate counter package from telemetry package 2024-06-21 19:58:04 +00:00
go.mod cmd: vendor golang.org/x/telemetry@a797f33 2024-08-29 14:37:27 +00:00
go.sum cmd: vendor golang.org/x/telemetry@a797f33 2024-08-29 14:37:27 +00:00
README.vendor

See src/README.vendor for information on loading vendored packages
and updating the vendor directory.