@@ -647,7 +647,7 @@ let compile_call env ?fname nargs tail =
647
647
else compile_common_call env fname nargs
648
648
649
649
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
651
651
652
652
(* Symbolic stack machine evaluator
653
653
@@ -875,10 +875,12 @@ let compile cmd env imports code =
875
875
else [] )
876
876
@ [
877
877
Push rbp;
878
- Meta " \t .cfi_def_cfa_offset\t 8" ;
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\t 16" ;
881
+ Meta " \t .cfi_offset %rbp, -16" ;
880
882
Mov (rsp, rbp);
881
- Meta " \t .cfi_def_cfa_register\t 5 " ;
883
+ Meta " \t .cfi_def_cfa_register\t %rbp " ;
882
884
Binop (" -" , C env#lsize, rsp);
883
885
Mov (rdi, r12);
884
886
Mov (rsi, r13);
@@ -932,8 +934,9 @@ let compile cmd env imports code =
932
934
]
933
935
@ (if name = " main" then [ Binop (" ^" , rax, rax) ] else [] )
934
936
@ [
935
- Meta " \t .cfi_restore\t rbp" ;
936
- Meta " \t .cfi_def_cfa\t 4, 4" ;
937
+ (* Meta "\t.cfi_restore\t5";
938
+ Meta "\t.cfi_def_cfa\t4, 4"; *)
939
+ Meta " \t .cfi_def_cfa\t %rsp, 8" ;
937
940
Ret ;
938
941
Meta " \t .cfi_endproc" ;
939
942
Meta
0 commit comments