cmd/compile: disable AlignHot on plan9/386

CL 577935 enabled hot block alignment on 386
and amd64 architecture.

However, this change broke the plan9/386 build.

This change disables  AlignHot on plan9/386.

Updates #67502.

Change-Id: If73b066824c7218a9408c6e8f06aec5908b7a64f
Reviewed-on: https://go-review.googlesource.com/c/go/+/586835
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
Run-TryBot: David du Colombier <0intro@gmail.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
This commit is contained in:
David du Colombier 2024-05-20 19:00:09 +02:00
parent 22344e11f2
commit 1cb13ac7f6

View file

@ -363,6 +363,11 @@ func ParseFlags() {
// set via a -d flag
Ctxt.Debugpcln = Debug.PCTab
// https://golang.org/issue/67502
if buildcfg.GOOS == "plan9" && buildcfg.GOARCH == "386" {
Debug.AlignHot = 0
}
}
// registerFlags adds flag registrations for all the fields in Flag.