[Bug c++/13719] 0.2*5.0>1.0 even with -O0, missing fldl probably
guilhem at mysql dot com
gcc-bugzilla@gcc.gnu.org
Sat Jan 17 19:54:00 GMT 2004
------- Additional Comments From guilhem at mysql dot com 2004-01-17 19:54 -------
Thanks for your answer. However, the 2nd example I gave in the bug report
#include <stdlib.h>
#include <stdio.h>
main()
{
double e = atof("0.2")*atof("5.0");
if (e>1.0)
printf("0.2 * 5.0 > 1.0 (ERROR)\n");
else
printf("0.2 * 5.0 <= 1.0 (OK)\n");
}
does "store the multiplication into a temporary variable" (quoting your words)
('e'), but it certainly does not "work as I am expecting" when compiled with -O1.
Could you please explain to me?
--
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|INVALID |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13719
More information about the Gcc-bugs
mailing list