mirror of
https://github.com/golang/go
synced 2024-11-26 11:08:38 -07:00
cmd/compile: remove 8-byte alignment requirement of stack slot on s390x
This CL applies CL 267999 to s390x. Updates #42385 Change-Id: Ie8e69ad1b3f7ddc2c8f05125f4af617aeac035ec Reviewed-on: https://go-review.googlesource.com/c/go/+/297769 Reviewed-by: Keith Randall <khr@golang.org> Trust: eric fang <eric.fang@arm.com>
This commit is contained in:
parent
85f62b0941
commit
c4e3f6c4c7
@ -138,7 +138,7 @@ func (s *ssafn) AllocFrame(f *ssa.Func) {
|
|||||||
} else {
|
} else {
|
||||||
lastHasPtr = false
|
lastHasPtr = false
|
||||||
}
|
}
|
||||||
if Arch.LinkArch.InFamily(sys.ARM, sys.ARM64, sys.PPC64, sys.S390X) {
|
if Arch.LinkArch.InFamily(sys.ARM, sys.ARM64, 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…
Reference in New Issue
Block a user