diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b7a2f5d09ff..732d78da1f3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2006-03-13 Bernd Schmidt + + * config/bfin/lib1funcs.asm (___umodsi3): Use stack to save contents + of RETS. + 2006-03-13 Eric Botcazou PR middle-end/18859 diff --git a/gcc/config/bfin/lib1funcs.asm b/gcc/config/bfin/lib1funcs.asm index ee06d462736..22e8a02a33a 100644 --- a/gcc/config/bfin/lib1funcs.asm +++ b/gcc/config/bfin/lib1funcs.asm @@ -111,10 +111,10 @@ ___udivsi3: .type ___umodsi3, STT_FUNC; ___umodsi3: - P1 = RETS; - CALL ___udivsi3; + [--SP] = RETS; + CALL ___udivsi3; R0 = R3; - RETS = P1; - RTS; + RETS = [SP++]; + RTS; #endif