summaryrefslogtreecommitdiff
path: root/extraction
diff options
context:
space:
mode:
authorGravatar xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e>2013-05-17 11:37:39 +0000
committerGravatar xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e>2013-05-17 11:37:39 +0000
commita3f1744823d6dbeaf400812de86263fb615bbbba (patch)
treeff1ed0a68fe2dceb19bb768cec89912344ea1ef6 /extraction
parent61f6aed04b846b174126d4b1cec28f6f1da20e52 (diff)
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')
-rw-r--r--extraction/extraction.v5
1 files changed, 5 insertions, 0 deletions
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".