]> Cypherpunks repositories - gostls13.git/commit
cmd/asm,cmd/compile: fix tail call in leaf functions on PPC64
authorPaul E. Murphy <murp@ibm.com>
Fri, 10 Dec 2021 22:58:43 +0000 (16:58 -0600)
committerCherry Mui <cherryyz@google.com>
Mon, 13 Dec 2021 16:09:22 +0000 (16:09 +0000)
commitd198a36d8c1d0a251449a1cc2355485a177310c4
tree9d5a53d2c20212f5b60fdcbbab8c4ede45c5bbcf
parentf4ca598c9f08a4d00942a1c6a6b8cc7d8f162b66
cmd/asm,cmd/compile: fix tail call in leaf functions on PPC64

In some leaf functions using "RET foo(SB)", the jump may be incorrectly
translated into "JMP LR" instead of "JMP foo(SB)".

Such is the case when compiling the autogenerated function in k8s
k8s.io/kubernetes/pkg/kubelet/server/stats.(*resourceAnalyzer).GetPodVolumeStats.

Fixes #50048

Change-Id: Icdf65fcda6b3c5eb9d3ad5c7aad04add9419dffb
Reviewed-on: https://go-review.googlesource.com/c/go/+/371034
Run-TryBot: Paul Murphy <murp@ibm.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Trust: Paul Murphy <murp@ibm.com>
src/cmd/internal/obj/ppc64/obj9.go