From a3f1744823d6dbeaf400812de86263fb615bbbba Mon Sep 17 00:00:00 2001 From: xleroy Date: Fri, 17 May 2013 11:37:39 +0000 Subject: Add option -fno-tailcalls to turn off tailcall elimination (causes problem with some static analysis tools). */PrintAsm.ml: don't cfa_adjust at Pfreeframe, as more code from the function can appear after (in case of tailcalls). git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@2256 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e --- ia32/PrintAsm.ml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ia32') diff --git a/ia32/PrintAsm.ml b/ia32/PrintAsm.ml index 12f6691..5ee4d01 100644 --- a/ia32/PrintAsm.ml +++ b/ia32/PrintAsm.ml @@ -716,8 +716,7 @@ let print_instruction oc = function fprintf oc " movl %%edx, %ld(%%esp)\n" ofs_link | Pfreeframe(sz, ofs_ra, ofs_link) -> let sz = sp_adjustment sz in - fprintf oc " addl $%ld, %%esp\n" sz; - cfi_adjust oc (Int32.neg sz) + fprintf oc " addl $%ld, %%esp\n" sz | Pbuiltin(ef, args, res) -> begin match ef with | EF_builtin(name, sg) -> -- cgit v1.2.3