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