]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: on 32-bit, bump up align for values that may contain 64-bit fields
authorKeith Randall <khr@golang.org>
Fri, 4 Apr 2025 20:05:23 +0000 (13:05 -0700)
committerKeith Randall <khr@golang.org>
Sat, 5 Apr 2025 06:25:15 +0000 (23:25 -0700)
commit1647896aa227d8546de3dbe70a5049eecee964e3
tree87e6e07fd943abb38367e00e6c550570792f35a7
parente373771490bab84449c7981a6be84e995de1ae80
cmd/compile: on 32-bit, bump up align for values that may contain 64-bit fields

On 32-bit systems, these need to be aligned to 8 bytes, even though the
typechecker doesn't tell us that.

The 64-bit allocations might be the target of atomic operations
that require 64-bit alignment.

Fixes 386 longtest builder.

Fixes #73173

Change-Id: I68f6a4f40c7051d29c57ecd560c8d920876a56a6
Reviewed-on: https://go-review.googlesource.com/c/go/+/663015
Reviewed-by: Cherry Mui <cherryyz@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Keith Randall <khr@google.com>
src/cmd/compile/internal/ssagen/ssa.go
src/cmd/compile/internal/test/locals_test.go