Skip to content

Commit

Permalink
cmd/compile: remove 4-byte alignment requirement of stack slot on arm
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
eric fang committed Mar 9, 2021
1 parent b6def6a commit 618b66e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/compile/internal/ssagen/pgen.go
Expand Up @@ -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)
Expand Down

0 comments on commit 618b66e

Please sign in to comment.