From 68f3344fe95dde95685b0d7fbbf74d13f3e9ee04 Mon Sep 17 00:00:00 2001 From: eric fang Date: Tue, 2 Mar 2021 06:05:00 +0000 Subject: [PATCH] cmd/compile: remove 8-byte alignment requirement of stack slot on ppc64 This CL applies CL 267999 to ppc64. Fixes #42385 Change-Id: I6462d647d1abdf7cec99607c40ef4d1fed1941e5 Reviewed-on: https://go-review.googlesource.com/c/go/+/297770 Reviewed-by: eric fang Reviewed-by: Cherry Zhang Trust: eric fang --- src/cmd/compile/internal/ssagen/pgen.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/cmd/compile/internal/ssagen/pgen.go b/src/cmd/compile/internal/ssagen/pgen.go index c2225ce950f..8fa5980dabe 100644 --- a/src/cmd/compile/internal/ssagen/pgen.go +++ b/src/cmd/compile/internal/ssagen/pgen.go @@ -19,7 +19,6 @@ import ( "cmd/internal/obj" "cmd/internal/objabi" "cmd/internal/src" - "cmd/internal/sys" ) // cmpstackvarlt reports whether the stack variable a sorts before b. @@ -133,9 +132,6 @@ func (s *ssafn) AllocFrame(f *ssa.Func) { } else { lastHasPtr = false } - if Arch.LinkArch.InFamily(sys.PPC64) { - s.stksize = types.Rnd(s.stksize, int64(types.PtrSize)) - } n.SetFrameOffset(-s.stksize) }