[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 10:24:17 PDT 2014


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

--- Comment #4 from Duncan Moore <duncan.moore at gmx.com> 2014-03-30 10:24:17 PDT ---
(In reply to comment #3)
> --8<--
> #include <math.h>
> 
> double a = sqrt(2.);
> --8<--
> 
> $ gcc -S -o - -c foo.c

I get:

        .file   "sqrt.c"
sqrt.c:2:12: warning: initializer element is not a constant expression [enabled
by default]
        .global a
        .data
        .align  2
        .type   a, %object
        .size   a, 8
a:
        .word   1073152000
        .word   0
        .ident  "GCC: (GCCSDK GCC 4.7.4 Release 1 Development) 4.7.4 20140108
(prerelease) [gcc-4_7-branch revision 206442]"

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

No

-- 
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