]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile: set PPC64's MAXWIDTH as other architectures
authorCherry Mui <cherryyz@google.com>
Fri, 3 Dec 2021 00:05:27 +0000 (19:05 -0500)
committerCherry Mui <cherryyz@google.com>
Fri, 3 Dec 2021 00:46:20 +0000 (00:46 +0000)
PPC64's MAXWIDTH is set as 1<<60 whereas on other 64-bit
architetures it is set as 1<<50. Set to 1<<50 for consistency. The
toolchain cannot handle such large program anyway.

May fix PPC64 build.

Change-Id: Ic3972a089b2f14a96e4ded57ef218d763c924a6a
Reviewed-on: https://go-review.googlesource.com/c/go/+/368955
Trust: Cherry Mui <cherryyz@google.com>
Trust: Dan Scales <danscales@google.com>
Run-TryBot: Cherry Mui <cherryyz@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Dan Scales <danscales@google.com>
src/cmd/compile/internal/ppc64/galign.go

index 6f9d1407d669d9ccbb2f8f2bdc2b5dd2d4eec8f0..20fd8cec54f397fb9d05f490798b0c4f3965ae17 100644 (file)
@@ -16,7 +16,7 @@ func Init(arch *ssagen.ArchInfo) {
                arch.LinkArch = &ppc64.Linkppc64le
        }
        arch.REGSP = ppc64.REGSP
-       arch.MAXWIDTH = 1 << 60
+       arch.MAXWIDTH = 1 << 50
 
        arch.ZeroRange = zerorange
        arch.Ginsnop = ginsnop