Open dmitshur opened 6 months ago
This change works around the issue:
--- a/src/cmd/compile/internal/ssagen/ssa.go
+++ b/src/cmd/compile/internal/ssagen/ssa.go
@@ -7316,7 +7316,7 @@ func genssa(f *ssa.Func, pp *objw.Progs) {
// good for amd64
// not helpful for Apple Silicon
//
- case "amd64", "386":
+ case "amd64":
// Align to 64 if 31 or fewer bytes remain in a cache line
// benchmarks a little better than always aligning, and also
// adds slightly less to the (PGO-compiled) binary size.
The question is now why it doesn't work for plan9/386?
Change https://go.dev/cl/586775 mentions this issue: dashboard: remove misc-compile-plan9-386
Change https://go.dev/cl/586835 mentions this issue: cmd/compile: disable AlignHot on plan9/386
Change https://go.dev/cl/589656 mentions this issue: dashboard: restore misc-compile-plan9-386
As reported by the plan9-386-0intro builder and legacy misc-compile-plan9-386 trybot, the plan9/386 port fails to bootstrap:
Also see https://build.golang.org/log/f237bed35a32f61819468d4cfd1b28946cb3e4d1 and https://storage.googleapis.com/go-build-log/ecc40e66/misc-compile-plan9-386_f210191c.log.
This doesn't happen for other ports. It also doesn't happen for other GOARCH values of GOOS=plan9 like plan9/amd64 and plan9/arm, only for plan9/386.
CC @golang/plan9.