mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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:
parent
22344e11f2
commit
1cb13ac7f6
1 changed files with 5 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue