http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45817
Mikael Pettersson <mikpe at it dot uu.se> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mikpe at it dot uu.se --- Comment #1 from Mikael Pettersson <mikpe at it dot uu.se> 2010-09-28 12:25:22 UTC --- It appears to be --enable-target-optspace that's broken, not -Os. With --enable-target-optspace lib1funcs.asm is compiled with __OPTIMIZE_SIZE__, which selects a different definition for the ARM_DIV_BODY macro than the default one. It seems the other definition is broken for this case. Without --enable-target-optspace I get the correct result (1) with 4.4/4.5/4.6.