diff options
author | eric fang <eric.fang@arm.com> | 2021-03-02 06:10:58 +0000 |
---|---|---|
committer | eric fang <eric.fang@arm.com> | 2021-03-03 06:57:05 +0000 |
commit | c4e3f6c4c78f52060d409a549b83b72644069137 (patch) | |
tree | 863ed87cbf64b0cd20aa07e0814e723e4b64b786 | |
parent | 85f62b09413ea043623f7f6905a4d1426908e6a2 (diff) | |
download | go-c4e3f6c4c78f52060d409a549b83b72644069137.tar.gz go-c4e3f6c4c78f52060d409a549b83b72644069137.zip |
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>
-rw-r--r-- | src/cmd/compile/internal/ssagen/pgen.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/compile/internal/ssagen/pgen.go b/src/cmd/compile/internal/ssagen/pgen.go index 9b81d14f7e..b675d1c876 100644 --- a/src/cmd/compile/internal/ssagen/pgen.go +++ b/src/cmd/compile/internal/ssagen/pgen.go @@ -138,7 +138,7 @@ func (s *ssafn) AllocFrame(f *ssa.Func) { } else { 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)) } n.SetFrameOffset(-s.stksize) |