It seems the only suspicious change in r288777 is the extra "#ifdef ARM_ARCH_EXT_IDIV". 
The rest of the change in r288777 should not affect the "#else" part of "__ARM_ARCH_ISA_THUMB == 1"
Details
Details
Diff Detail
Diff Detail
 Differential  D30867  
[Builtin][ARM] Try to address error on FreeBSD with r288777 AbandonedPublic Authored by weimingz on Mar 11 2017, 12:21 PM. 
Diff 91481 lib/builtins/arm/udivsi3.S
  | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||