1. HongboZhang
  2. ocaml

Commits

xleroy  committed 6181cde

PR#5700, take 2: another misaligned call to caml_stash_backtrace.

git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12818f963ae5c-01c2-4b8c-9fe0-0dff7051ff02

  • Participants
  • Parent commits 7c70721
  • Branches master

Comments (0)

Files changed (1)

File asmrun/amd64.S

View file
  • Ignore whitespace
         LOAD_VAR(caml_last_return_address,C_ARG_2)   /* arg 2: pc of raise */
         LOAD_VAR(caml_bottom_of_stack,C_ARG_3)       /* arg 3: sp of raise */
         LOAD_VAR(caml_exception_pointer,C_ARG_4)     /* arg 4: sp of handler */
+        subq    $8, %rsp              /* PR#5700: maintain stack alignment */
         PREPARE_FOR_C_CALL            /* no need to cleanup after */
         call    GCALL(caml_stash_backtrace)
         movq    %r12, %rax            /* Recover exception bucket */