]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: don't treat devel compiler as a released compiler
authorCherry Mui <cherryyz@google.com>
Fri, 20 Jun 2025 16:02:18 +0000 (12:02 -0400)
committerCherry Mui <cherryyz@google.com>
Fri, 3 Oct 2025 19:29:51 +0000 (12:29 -0700)
commitebb72bef44a0e125c7f900a04af6538e3c39dfc6
treebf4f45e18a8b5a05346f6b0451a449d6fe6ad5c7
parentc54dc1418b6fbff4176aaaffcc9fab6f1ad631a6
cmd/compile: don't treat devel compiler as a released compiler

The compiler has a logic to print different messages on internal
compiler error depending on whether this is a released version of
Go. It hides the panic stack trace if it is a released version. It
does this by checking the version and see if it has a "go" prefix.
This includes all the released versions. However, for a non-
released build, if there is no explicit version set, cmd/dist now
sets the toolchain version as go1.X-devel_XXX, which makes it be
treated as a released compiler, and causes the stack trace to be
hidden. Change the logic to not match a devel compiler as a
released compiler.

Cherry-picked from the dev.simd branch. This CL is not
necessarily SIMD specific. Apply early to reduce risk.

Change-Id: I5d3b2101527212f825b6e4000b36030c4f83870b
Reviewed-on: https://go-review.googlesource.com/c/go/+/682975
Reviewed-by: David Chase <drchase@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-on: https://go-review.googlesource.com/c/go/+/708855
Reviewed-by: Junyang Shao <shaojunyang@google.com>
src/cmd/compile/internal/base/print.go