+2005-11-04 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * config/arm/arm.c (arm_init_libfuncs): Use __aeabi_idiv and
+ __aeabi_uidiv.
+
2005-11-04 Mark Mitchell <mark@codesourcery.com>
Daniel Jacobowitz <dan@codesourcery.com>
routines. */
set_optab_libfunc (sdiv_optab, DImode, "__aeabi_ldivmod");
set_optab_libfunc (udiv_optab, DImode, "__aeabi_uldivmod");
- set_optab_libfunc (sdiv_optab, SImode, "__aeabi_idivmod");
- set_optab_libfunc (udiv_optab, SImode, "__aeabi_uidivmod");
+
+ /* For SImode division the ABI provides div-without-mod routines,
+ which are faster. */
+ set_optab_libfunc (sdiv_optab, SImode, "__aeabi_idiv");
+ set_optab_libfunc (udiv_optab, SImode, "__aeabi_uidiv");
/* We don't have mod libcalls. Fortunately gcc knows how to use the
divmod libcalls instead. */