aboutsummaryrefslogtreecommitdiffstats
path: root/driver
diff options
context:
space:
mode:
authorBernhard Schommer <bernhardschommer@gmail.com>2017-04-07 14:00:15 +0200
committerBernhard Schommer <bernhardschommer@gmail.com>2017-04-07 14:08:26 +0200
commit2086ba4770d435a084c65410ab061591e1a36c33 (patch)
tree13890341fe1f6bb42d94ef77187a3430bb3e50f2 /driver
parente5b37a6d1b08ffb3beb15677930992eed747efe1 (diff)
downloadcompcert-2086ba4770d435a084c65410ab061591e1a36c33.tar.gz
compcert-2086ba4770d435a084c65410ab061591e1a36c33.zip
Add optimization option finline.
The new option f(no-)inline controlls whether inlining is active or not. Bug 21343.
Diffstat (limited to 'driver')
-rw-r--r--driver/Clflags.ml1
-rw-r--r--driver/Driver.ml1
2 files changed, 2 insertions, 0 deletions
diff --git a/driver/Clflags.ml b/driver/Clflags.ml
index c7a5d3bf..2d92e09b 100644
--- a/driver/Clflags.ml
+++ b/driver/Clflags.ml
@@ -33,6 +33,7 @@ let option_faligncondbranchs = ref 0
let option_finline_asm = ref false
let option_mthumb = ref (Configuration.model = "armv7m")
let option_Osize = ref false
+let option_finline = ref true
let option_dprepro = ref false
let option_dparse = ref false
let option_dcmedium = ref false
diff --git a/driver/Driver.ml b/driver/Driver.ml
index 48bd9034..a91bb67c 100644
--- a/driver/Driver.ml
+++ b/driver/Driver.ml
@@ -409,6 +409,7 @@ let cmdline_actions =
@ f_opt "const-prop" option_fconstprop
@ f_opt "cse" option_fcse
@ f_opt "redundancy" option_fredundancy
+ @ f_opt "inline" option_finline
(* Code generation options *)
@ f_opt "fpu" option_ffpu
@ f_opt "sse" option_ffpu (* backward compatibility *)