]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.25] cmd/compile: fix mis-compilation for static array initialization
authorCuong Manh Le <cuong.manhle.vn@gmail.com>
Wed, 21 Jan 2026 07:39:20 +0000 (14:39 +0700)
committerDavid Chase <drchase@google.com>
Wed, 25 Feb 2026 19:16:35 +0000 (11:16 -0800)
commit02227173776bb286585db6c124432972da2a9580
tree87f6fc5399b5390db4de8e99bf66d19adf5c9d59
parenteaf3bc799a221cc375f188e8699c9330c1caf40a
[release-branch.go1.25] cmd/compile: fix mis-compilation for static array initialization

The bug was first introduced when the compiler is still written in C,
with CL 2254041. The static array was laid out with the wrong context,
causing a stack pointer will be stored in global object.

Fixes #77253

Change-Id: I22c8393314d251beb53db537043a63714c84f36a
Reviewed-on: https://go-review.googlesource.com/c/go/+/737821
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Keith Randall <khr@golang.org>
Reviewed-on: https://go-review.googlesource.com/c/go/+/738440
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/cmd/compile/internal/walk/complit.go
test/codegen/slices.go