Skip to content

Commit 74cb7ab

Browse files
committed
arm
1 parent 826fcb5 commit 74cb7ab

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

backend/arm64/emit.ml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -968,8 +968,14 @@ module BR = Branch_relaxation.Make (struct
968968
if String.equal func.sym_name !function_name then 1 else epilogue_size ()
969969
| Lcall_op
970970
(Lextcall
971-
{ alloc; stack_ofs; func = _; ty_res = _; ty_args = _; returns = _ })
972-
->
971+
{ alloc;
972+
stack_ofs;
973+
stack_align = _;
974+
func = _;
975+
ty_res = _;
976+
ty_args = _;
977+
returns = _
978+
}) ->
973979
if Config.runtime5 && stack_ofs > 0 then 5 else if alloc then 3 else 5
974980
| Lop (Stackoffset _) -> 2
975981
| Lop (Load { memory_chunk; addressing_mode; is_atomic; mutability = _ }) ->

backend/arm64/proc.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ let external_calling_conventions
224224
loc.(i) <- [| loc_float32 last_float make_stack float ofs |]
225225
end)
226226
ty_args;
227-
(loc, Misc.align !ofs 16) (* keep stack 16-aligned *)
227+
(loc, Misc.align !ofs 16, Cmm.Align_16) (* keep stack 16-aligned *)
228228

229229
let loc_external_arguments ty_args =
230230
external_calling_conventions 0 7 100 107 outgoing ty_args

0 commit comments

Comments
 (0)