[gccsdk] [Bug 250] GCC 4.7.4 Rel 1 Dev 2014-01-08: sqrt function

bugzilla-daemon at riscos.info bugzilla-daemon at riscos.info
Sun Mar 30 06:23:10 PDT 2014


http://www.riscos.info/bugzilla3/show_bug.cgi?id=250

--- Comment #3 from John Tytgat <John.Tytgat at aaug.net> 2014-03-30 06:23:09 PDT ---
So it looks like the constant expression gets wrong evaluated.  I suppose you
can reproduce this just as well using:

--8<--
#include <math.h>

double a = sqrt(2.);
--8<--

When converting to assembler:

$ gcc -S -o - -c foo.c

You should see:

    .word    1073127582
    .word    1719614413

I guess you will have different .word values.

I'm wondering if this isn't a VirtualRPC-Adjust specific issue, is this
configured to emulate a StrongARM processor ?

-- 
Configure bugmail: http://www.riscos.info/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.




More information about the gcc mailing list