summaryrefslogtreecommitdiff
path: root/driver
diff options
context:
space:
mode:
authorGravatar xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e>2014-07-29 13:42:11 +0000
committerGravatar xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e>2014-07-29 13:42:11 +0000
commit769589fb4f72edf46c16a396de6777d8e2fbb9bf (patch)
tree433505a6dba47631170d815945d2782bbc56a264 /driver
parent21e269ee37b934428306f53dda0495fee30dd8fa (diff)
configure: distinguish between ABI and processor model.
ARM: various tweaks, incl. support for SDIV and UDIV insns when available. test/regression/funptr2.c: Thumb does weird things with <function ptr>+1. git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@2555 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e
Diffstat (limited to 'driver')
-rw-r--r--driver/Clflags.ml4
1 files changed, 2 insertions, 2 deletions
diff --git a/driver/Clflags.ml b/driver/Clflags.ml
index 7104c32..d3d4067 100644
--- a/driver/Clflags.ml
+++ b/driver/Clflags.ml
@@ -28,7 +28,7 @@ let option_falignfunctions = ref (None: int option)
let option_falignbranchtargets = ref 0
let option_faligncondbranchs = ref 0
let option_finline_asm = ref false
-let option_fthumb = ref false
+let option_fthumb = ref (Configuration.model = "armv7m")
let option_Osize = ref false
let option_dparse = ref false
let option_dcmedium = ref false
@@ -49,7 +49,7 @@ let option_v = ref false
let option_interp = ref false
let option_small_data =
ref (if Configuration.arch = "powerpc"
- && Configuration.variant = "eabi"
+ && Configuration.abi = "eabi"
&& Configuration.system = "diab"
then 8 else 0)
let option_small_const = ref (!option_small_data)