]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.20] cmd/compile: disable inline static init optimization
authorCuong Manh Le <cuong.manhle.vn@gmail.com>
Thu, 9 Feb 2023 19:13:05 +0000 (02:13 +0700)
committerMichael Pratt <mpratt@google.com>
Wed, 15 Feb 2023 21:45:58 +0000 (21:45 +0000)
commit965e9ba0fb6ed8b511860beaefa7a3ac97a81c36
tree9a11c54b35df6af699087495dc2091a1383e7445
parent85ded85b78e881d826ed5a2e0cc1dcff8af71142
[release-branch.go1.20] cmd/compile: disable inline static init optimization

There are a plenty of regression in 1.20 with this optimization. This CL
disable inline static init, so it's safer to backport to 1.20 branch.

The optimization will be enabled again during 1.21 cycle.

Fixes #58444

Change-Id: If5916008597b46146b4dc7108c6b389d53f35e95
Reviewed-on: https://go-review.googlesource.com/c/go/+/467015
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Auto-Submit: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Reviewed-on: https://go-review.googlesource.com/c/go/+/467035
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/base/flag.go
test/fixedbugs/issue56778.go
test/inline.go
test/noinit.go