]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile: disable AlignHot on plan9/386
authorDavid du Colombier <0intro@gmail.com>
Mon, 20 May 2024 17:00:09 +0000 (19:00 +0200)
committerDavid du Colombier <0intro@gmail.com>
Tue, 21 May 2024 11:57:40 +0000 (11:57 +0000)
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>
src/cmd/compile/internal/base/flag.go

index fe515aafbf30b6f3ccd1903718a137d0255703bd..8c17c5f27d8802f645f8f3340cea0650f7cdeda4 100644 (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.