]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/internal/obj: fix tail call in non-zero frame leaf function on MIPS and S390X
authorCherry Mui <cherryyz@google.com>
Mon, 13 Dec 2021 15:24:07 +0000 (10:24 -0500)
committerCherry Mui <cherryyz@google.com>
Mon, 13 Dec 2021 22:42:08 +0000 (22:42 +0000)
commit67917c3d78002ebca7de697f4ede74e602701554
tree097781e496f0f9e5b29ed7667b6a2076a31ab186
parent9e85dc5f183d688f5297203dd76f281a6d87d94f
cmd/internal/obj: fix tail call in non-zero frame leaf function on MIPS and S390X

A "RET f(SB)" wasn't assembled correctly in a leaf function with
non-zero frame size. Follows CL 371034, for MIPS(32/64)(be/le)
and S390X. Other architectures seem to do it right. Add a test.

Change-Id: I41349a7ae9862b924f3a3de2bcb55b782061ce21
Reviewed-on: https://go-review.googlesource.com/c/go/+/371214
Trust: Cherry Mui <cherryyz@google.com>
Run-TryBot: Cherry Mui <cherryyz@google.com>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/internal/obj/mips/obj0.go
src/cmd/internal/obj/s390x/objz.go
test/retjmp.dir/a.s
test/retjmp.dir/main.go