------- Additional Comments From zhangyijin_2008 at 163 dot com 2004-11-23 06:04 ------- (In reply to comment #8) > Subject: Re: EP9312 gcc: undefined reference to __divdf3 > On Tue, 2004-08-31 at 16:17, dank at kegel dot com wrote: > > ------- Additional Comments From dank at kegel dot com 2004-08-31 15:17 --- ---- > > I can't find it. If you run into it, can you paste in the PR number? > PR 14352. > R.
I use this function and I test it can run ok. But I don`t know can it run ok always? //double __divdf3(double a,double b ){ return a/b; } .file "__divdf3.s" .global __divdf3 .text .align 2 .global __divdf3 .type __divdf3, %function __divdf3: @ args = 0, pretend = 0, frame = 0 @ frame_needed = 0, uses_anonymous_args = 0 @ link register save eliminated. mov ip, sp stmfd sp!, {r4, fp, ip, lr, pc} sub fp, ip, #4 sub sp, sp, #16 str r0, [fp, #-24] str r1, [fp, #-20] str r2, [fp, #-32] str r3, [fp, #-28] ldfd f1, [fp, #-24] ldfd f0, [fp, #-32] dvfd f0, f1, f0 ldmfd sp!, {r3, r4} cfmvdlr mvd0, r3 cfmvdhr mvd0, r4 sub sp, fp, #16 ldmfd sp, {r4, fp, sp, pc} .end -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16314