summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Leroy <xavier.leroy@inria.fr>2015-08-21 12:36:45 +0000
committerXavier Leroy <xavier.leroy@inria.fr>2015-08-21 12:36:45 +0000
commite64461246f3c8a00601ed5be649421b9ecdae767 (patch)
treea0622ec347aa0574a57182a9c00e370a7dc42003
parent84ebf792e69acdf88e3490dedf97775a70aaeb1d (diff)
downloadocaml-ppc64.tar.gz
Typo in comment explaining the TOC galore. (Courtesy M. Shinwell.)ppc64
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/ppc64@16363 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
-rw-r--r--asmcomp/power/emit.mlp2
1 files changed, 1 insertions, 1 deletions
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: