mirror of
https://github.com/golang/go
synced 2024-11-12 01:00:22 -07:00
cmd/compile: remove 8-byte alignment requirement of stack slot on mips64
This CL applies CL 267999 to mips64. Updates #42385 Change-Id: Ideab21be0d8c1a36b3be7411b24adac70a3d16e0 Reviewed-on: https://go-review.googlesource.com/c/go/+/297771 Reviewed-by: eric fang <eric.fang@arm.com> Reviewed-by: Keith Randall <khr@golang.org> Trust: eric fang <eric.fang@arm.com> Run-TryBot: eric fang <eric.fang@arm.com> TryBot-Result: Go Bot <gobot@golang.org>
This commit is contained in:
parent
77973863c3
commit
84ca4949a7
@ -138,7 +138,7 @@ func (s *ssafn) AllocFrame(f *ssa.Func) {
|
||||
} else {
|
||||
lastHasPtr = false
|
||||
}
|
||||
if Arch.LinkArch.InFamily(sys.MIPS, sys.MIPS64, sys.ARM, sys.ARM64, sys.PPC64, sys.S390X) {
|
||||
if Arch.LinkArch.InFamily(sys.MIPS, sys.ARM, sys.ARM64, sys.PPC64, sys.S390X) {
|
||||
s.stksize = types.Rnd(s.stksize, int64(types.PtrSize))
|
||||
}
|
||||
n.SetFrameOffset(-s.stksize)
|
||||
|
Loading…
Reference in New Issue
Block a user