[Bug target/14384] Invalid use of extra precision floating-point with -O0 optimization
anz at obs-nice dot fr
gcc-bugzilla@gcc.gnu.org
Wed Mar 10 18:23:00 GMT 2004
------- Additional Comments From anz at obs-nice dot fr 2004-03-10 18:23 -------
Created an attachment (id=5893)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=5893&action=view)
An even simpler source file demonstrating the problem
This even simpler code shows that gcc doesn't round an expression to (float)
and
keeps the extra precision even when an explicit cast is present, where it
shouldn't be allowed to do so.
The same expression is computed twice, in (double) and in forced (float) with
an
explicit cast. They must differ, unless float and double are the same.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14384
More information about the Gcc-bugs
mailing list