mirror of
https://github.com/golang/go
synced 2024-11-26 05:57:58 -07: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
@ -133,7 +133,7 @@ func (s *ssafn) AllocFrame(f *ssa.Func) {
|
||||
} else {
|
||||
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))
|
||||
}
|
||||
n.SetFrameOffset(-s.stksize)
|
||||
|
Loading…
Reference in New Issue
Block a user