http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48863
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> 2011-05-04
08:48:23 UTC ---
I see this on armv5tel-linux-gnueabi too, with the glibc-ports-2.10.1
definition of the syscall wrapper macros. It seems to be caused by / being
expanded to a libcall by the backend. If I move the "/ 23" expression to a
helper function and make that noinline, then the division does occur well
before the swi registers are set up. Without the noinline a call to
__aeabi_uldivmod occurs just before the swi, clobbering some of its parameters.