Don't use r12 to pass size to caml_call_realloc_stack
authorXavier Leroy <xavier.leroy@college-de-france.fr>
Thu, 29 Aug 2024 10:08:16 +0000 (12:08 +0200)
committerStéphane Glondu <glondu@debian.org>
Thu, 29 Aug 2024 16:03:23 +0000 (18:03 +0200)
commit5a5af21b14fbbacf4a1b14d75a3059db1cd5cc15
tree839815f95341976178dbac6bb2c04c052b178034
parent2eed6826707ada6596451b76edfdc86f22cfe201
Don't use r12 to pass size to caml_call_realloc_stack

The temporary r12 can be destroyed by a PLT shim.
Instead, use r27 (a non-temporary register, not used at OCaml function entry).

Origin: https://github.com/ocaml/ocaml/pull/13410

Gbp-Pq: Name 0011-Don-t-use-r12-to-pass-size-to-caml_call_realloc_stac.patch
asmcomp/power/emit.mlp
runtime/power.S