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 --- extraction/extraction.v | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'extraction') diff --git a/extraction/extraction.v b/extraction/extraction.v index df155f1..6bc0234 100644 --- a/extraction/extraction.v +++ b/extraction/extraction.v @@ -19,6 +19,7 @@ Require RTLgen. Require Inlining. Require ConstpropOp. Require Constprop. +Require Tailcall. Require Allocation. Require Compiler. @@ -73,6 +74,10 @@ Extract Constant ConstpropOp.propagate_float_constants => Extract Constant Constprop.generate_float_constants => "fun _ -> !Clflags.option_ffloatconstprop >= 2". +(* Tailcall *) +Extract Constant Tailcall.eliminate_tailcalls => + "fun _ -> !Clflags.option_ftailcalls". + (* Allocation *) Extract Constant Allocation.regalloc => "Regalloc.regalloc". -- cgit v1.2.3