From 088c9674a9c81cf20e9a863df571ba6d48e9ae37 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Mon, 19 Dec 2016 21:53:33 -0500 Subject: when building for arm as thumb2 code, also request assembly as thumb all assembly is now thumb2-compatible. on existing targets this is at best a size optimization, but it will also facilitate porting to thumb2-isa-only arm variants. --- configure | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure b/configure index 81e90f7..c2db298 100755 --- a/configure +++ b/configure @@ -602,6 +602,10 @@ trycppif __ILP32__ "$t" && ARCH=x32 fi if test "$ARCH" = "arm" ; then +if trycppif __thumb2__ "$t" ; then +tryflag CFLAGS_AUTO -Wa,-mimplicit-it=always +tryflag CFLAGS_AUTO -Wa,-mthumb +fi trycppif __ARMEB__ "$t" && SUBARCH=${SUBARCH}eb trycppif __ARM_PCS_VFP "$t" && SUBARCH=${SUBARCH}hf # Versions of clang up until at least 3.8 have the wrong constraint codes -- cgit v1.1