From 769589fb4f72edf46c16a396de6777d8e2fbb9bf Mon Sep 17 00:00:00 2001 From: xleroy Date: Tue, 29 Jul 2014 13:42:11 +0000 Subject: 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 +1. git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@2555 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e --- driver/Clflags.ml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'driver') diff --git a/driver/Clflags.ml b/driver/Clflags.ml index 7104c32d..d3d40679 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) -- cgit