mirror of
https://github.com/golang/go
synced 2024-11-26 05:07:59 -07:00
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 <eric.fang@arm.com> Reviewed-by: Cherry Zhang <cherryyz@google.com> Trust: eric fang <eric.fang@arm.com>
This commit is contained in:
parent
fdded79e6e
commit
68f3344fe9
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user