mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile: remove 4-byte alignment requirement of stack slot on arm
This CL applies CL 267999 to arm. Updates #42385 Change-Id: Iad82aafcb7b0a5a77a4bea32f648320f57a17cdd Reviewed-on: https://go-review.googlesource.com/c/go/+/297773 Reviewed-by: eric fang <eric.fang@arm.com> Reviewed-by: Cherry Zhang <cherryyz@google.com> Trust: eric fang <eric.fang@arm.com> Run-TryBot: eric fang <eric.fang@arm.com>
This commit is contained in:
parent
b6def6a34e
commit
618b66e16d
1 changed files with 1 additions and 1 deletions
|
|
@ -133,7 +133,7 @@ func (s *ssafn) AllocFrame(f *ssa.Func) {
|
||||||
} else {
|
} else {
|
||||||
lastHasPtr = false
|
lastHasPtr = false
|
||||||
}
|
}
|
||||||
if Arch.LinkArch.InFamily(sys.ARM, sys.PPC64) {
|
if Arch.LinkArch.InFamily(sys.PPC64) {
|
||||||
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…
Add table
Add a link
Reference in a new issue