Saturday, 29 March 2014

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

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

--- Comment #2 from Duncan Moore <duncan.moore@gmx.com> 2014-03-29 10:16:49 PDT ---
(In reply to comment #1)

> Do you also have this problem when using static UnixLib binaries (i.e. use
> -static option) ?

Yes, it's the same with -static. A similar thing happens with the trig
functions from <math.h>. It only happens when the argument is a literal
constant, not a variable:

#include <stdio.h>
#include <math.h>
int main(void) {
printf("%f\n",sqrt(2.0));
double x=2.0;
printf("%f\n",sqrt(x));
return 0;
}

1.437500
1.414214

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

_______________________________________________
GCCSDK mailing list gcc@gccsdk.riscos.info
Bugzilla: http://www.riscos.info/bugzilla/index.cgi
List Info: http://www.riscos.info/mailman/listinfo/gcc
Main Page: http://www.riscos.info/index.php/GCCSDK

No comments:

Post a Comment