From: Rich Felker Date: Tue, 20 Dec 2016 02:53:33 +0000 (-0500) Subject: when building for arm as thumb2 code, also request assembly as thumb X-Git-Tag: v1.1.16~5 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=088c9674a9c81cf20e9a863df571ba6d48e9ae37;p=oweals%2Fmusl.git 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. --- diff --git a/configure b/configure index 81e90f79..c2db298c 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