Bläddra i källkod

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.
Rich Felker 8 år sedan
förälder
incheckning
088c9674a9
1 ändrade filer med 4 tillägg och 0 borttagningar
  1. 4 0
      configure

+ 4 - 0
configure

@@ -602,6 +602,10 @@ trycppif __ILP32__ "$t" && ARCH=x32
 fi
 fi
 
 
 if test "$ARCH" = "arm" ; then
 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 __ARMEB__ "$t" && SUBARCH=${SUBARCH}eb
 trycppif __ARM_PCS_VFP "$t" && SUBARCH=${SUBARCH}hf
 trycppif __ARM_PCS_VFP "$t" && SUBARCH=${SUBARCH}hf
 # Versions of clang up until at least 3.8 have the wrong constraint codes
 # Versions of clang up until at least 3.8 have the wrong constraint codes