From e64461246f3c8a00601ed5be649421b9ecdae767 Mon Sep 17 00:00:00 2001 From: Xavier Leroy Date: Fri, 21 Aug 2015 12:36:45 +0000 Subject: Typo in comment explaining the TOC galore. (Courtesy M. Shinwell.) git-svn-id: http://caml.inria.fr/svn/ocaml/branches/ppc64@16363 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02 --- asmcomp/power/emit.mlp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/asmcomp/power/emit.mlp b/asmcomp/power/emit.mlp index afb66128ff..e3e16895cb 100644 --- a/asmcomp/power/emit.mlp +++ b/asmcomp/power/emit.mlp @@ -587,7 +587,7 @@ let emit_instr i = - current function f1 calls f2 that has the same TOC - f2 tailcalls f3 that has a different TOC Because f1 and f2 have the same TOC, the linker inserted no - code in f1 to save and restore r2 around the call to f1. + code in f1 to save and restore r2 around the call to f2. Because f2 tailcalls f3, r2 will not be restored to f2's TOC when f3 returns. So, we're back into f1, with the wrong TOC in r2. We have two options: -- cgit v1.2.1