Skip to content

Commit c55bc55

Browse files
committed
t
1 parent d3a6f67 commit c55bc55

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

src/X86_64.ml

+9-6
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ let compile_call env ?fname nargs tail =
647647
else compile_common_call env fname nargs
648648

649649
let opt_stabs env stabs =
650-
match env#mode.target_os with Darwin -> [] | Linux -> stabs
650+
match env#mode.target_os with Darwin -> [] | Linux -> (* [] *) stabs
651651

652652
(* Symbolic stack machine evaluator
653653
@@ -875,10 +875,12 @@ let compile cmd env imports code =
875875
else [])
876876
@ [
877877
Push rbp;
878-
Meta "\t.cfi_def_cfa_offset\t8";
879-
Meta "\t.cfi_offset 5, -8";
878+
(* Meta "\t.cfi_def_cfa_offset\t8";
879+
Meta "\t.cfi_offset 5, -8"; *)
880+
Meta "\t.cfi_def_cfa_offset\t16";
881+
Meta "\t.cfi_offset %rbp, -16";
880882
Mov (rsp, rbp);
881-
Meta "\t.cfi_def_cfa_register\t5";
883+
Meta "\t.cfi_def_cfa_register\t%rbp";
882884
Binop ("-", C env#lsize, rsp);
883885
Mov (rdi, r12);
884886
Mov (rsi, r13);
@@ -932,8 +934,9 @@ let compile cmd env imports code =
932934
]
933935
@ (if name = "main" then [ Binop ("^", rax, rax) ] else [])
934936
@ [
935-
Meta "\t.cfi_restore\trbp";
936-
Meta "\t.cfi_def_cfa\t4, 4";
937+
(* Meta "\t.cfi_restore\t5";
938+
Meta "\t.cfi_def_cfa\t4, 4"; *)
939+
Meta "\t.cfi_def_cfa\t%rsp, 8";
937940
Ret;
938941
Meta "\t.cfi_endproc";
939942
Meta

0 commit comments

Comments
 (0)