This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/14384] Invalid use of extra precision floating-point with -O0 optimization
- From: "anz at obs-nice dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Mar 2004 18:23:42 -0000
- Subject: [Bug target/14384] Invalid use of extra precision floating-point with -O0 optimization
- References: <20040302150001.14384.anz@obs-nice.fr>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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