diff options
author | xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e> | 2013-05-17 11:37:39 +0000 |
---|---|---|
committer | xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e> | 2013-05-17 11:37:39 +0000 |
commit | a3f1744823d6dbeaf400812de86263fb615bbbba (patch) | |
tree | ff1ed0a68fe2dceb19bb768cec89912344ea1ef6 /extraction/extraction.v | |
parent | 61f6aed04b846b174126d4b1cec28f6f1da20e52 (diff) | |
download | compcert-a3f1744823d6dbeaf400812de86263fb615bbbba.tar.gz compcert-a3f1744823d6dbeaf400812de86263fb615bbbba.zip |
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
Diffstat (limited to 'extraction/extraction.v')
-rw-r--r-- | extraction/extraction.v | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/extraction/extraction.v b/extraction/extraction.v index df155f15..6bc0234e 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". |