Commit d198a36d authored by Paul E. Murphy's avatar Paul E. Murphy Committed by Cherry Mui
Browse files

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: default avatarCherry Mui <cherryyz@google.com>
Trust: Paul Murphy <murp@ibm.com>
parent f4ca598c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment